-
Notifications
You must be signed in to change notification settings - Fork 2
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
Optional bowtie build #6
base: dev
Are you sure you want to change the base?
Optional bowtie build #6
Conversation
|
While not as elegant as the storeDir solution, I can add another pipeline parameter for the samtools index and add some conditional logic to skip samtools faidx if this is present. What are your thoughts? |
@@ -62,8 +62,13 @@ process { | |||
publishDir = [ enabled: false ] | |||
} | |||
withName: 'BOWTIE2_BUILD' { | |||
// Check if the Bowtie2 index exists and skip if it does | |||
process.when = !new File(params.bowtie2_db + '.1.bt2').exists() |
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 doesn't work. process.when
is not a directive. Also conditional execution should be included in the code to make it transparent.
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.
Okay, I see. I still received an error about bowtie2-build when trying to run with the suggestions you made in this PR, that's why I came up with another suggestion.
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.
If you have something I can test on, I can make sure it works.
PR checklist
Partially resolves #4.
Writes out the bowtie2 indices (and versions.yml) to the same directory as the fasta input. If this directory is used again in another run, the cached index will be used instead of rerunning the process.
The same cannot be done for samtools faidx (yet) because it's a separate process which writes it's own versions.yml. These
versions.yml are used later on for collecting versions information. Over the summer, the nf-core modules will go through a restructure making the
versions.yml
obsolete meaning thestoreDir
solution can then be used. It's currently included as a comment.nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).nextflow run . -profile debug,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).