-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blastn subworkflow #31
Conversation
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
seqtk subseq \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seqtk/subseq is already in nf-core (https://github.com/nf-core/modules/blob/master/modules/seqtk/subseq/main.nf), don't make your own here
def log = "${prefix}.log" | ||
def output = "${prefix}.blastn.raw" | ||
""" | ||
if [ -s ${fasta} ]; then \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This (if really needed) should be in the subworkflow
blastn -task megablast \\ | ||
$args \\ | ||
-num_threads $task.cpus \\ | ||
-query ${fasta} \\ | ||
-db ${db} \\ | ||
> $output 2> $log || \\ | ||
sleep 30; \ | ||
if [ -s $log ]; then \\ | ||
echo "Restarting blastn without taxid filter" >> $log; \\ | ||
> $output; \ | ||
blastn -task megablast \\ | ||
$args2 \\ | ||
-num_threads $task.cpus \\ | ||
-query ${fasta} \\ | ||
-db ${db} \\ | ||
> $output 2>> $log; \\ | ||
fi \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you could do this in the subworkflow by calling the nfcore module https://github.com/nf-core/modules/blob/master/modules/blast/blastn/main.nf
val evalue | ||
|
||
output: | ||
path "*.nohit.txt" , emit: nohit_list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta needs to be propagated
removed prefix.log file Co-authored-by: Matthieu Muffato <[email protected]>
deleted args Co-authored-by: Matthieu Muffato <[email protected]>
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).This PR is part of the Google Summer of Code 2022 project: Conversion of the BlobToolKit pipeline to Nextflow, GitHub repository: https://github.com/sanger-tol/blobtoolkit