-
Notifications
You must be signed in to change notification settings - Fork 35
Added optional Bwa index parameter to skip bwamem2 index for a faster output #132
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
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: Maxime U Garcia <[email protected]>
Co-authored-by: Maxime U Garcia <[email protected]>
…nspector into picard_tools_dev
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.2.0. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
|
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.
Why a separate file for this, and not using the conf/base.config?
| - [#127] (https://github.com/nf-core/seqinspector/pull/127) Added alignment tools - bwamem2 - index and mem | ||
| - [#128] (https://github.com/nf-core/seqinspector/pull/128) Added Picard tools - Collect Multiple Mterics to collect QC metrics |
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.
where is 132?
| - [#127] (https://github.com/nf-core/seqinspector/pull/127) Added alignment tools - bwamem2 - index and mem | |
| - [#128] (https://github.com/nf-core/seqinspector/pull/128) Added Picard tools - Collect Multiple Mterics to collect QC metrics | |
| - [#127](https://github.com/nf-core/seqinspector/pull/127) Added alignment tools - bwamem2 - index and mem | |
| - [#128](https://github.com/nf-core/seqinspector/pull/128) Added Picard tools - Collect Multiple Mterics to collect QC metrics |
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.
so for me bwa and other indexes should be fetch using getGenomeAttribute at this level from the igenomes.config file around L17
| igenomes_base = 's3://ngi-igenomes/igenomes/' | ||
| igenomes_ignore = false | ||
| sort_bam = true | ||
| bwa_index = null |
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.
that should not be needed
| "properties": { | ||
| "bwa_index": { | ||
| "type": "string" | ||
| } | ||
| } |
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.
that should be in the reference_genome_options part
| picard_collectmultiplemetrics/*.pdf | ||
| picard_collectmultiplemetrics/*_metrics | ||
| picard_collectmultiplemetrics/alignment_summary_metrics | ||
| picard_collectmultiplemetrics/base_distribution_by_cycle_metrics | ||
| picard_collectmultiplemetrics/quality_by_cycle_metrics | ||
| picard_collectmultiplemetrics/quality_distribution_metrics | ||
| picard_collectmultiplemetrics/*_summary_metrics |
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 feel this is coming from another PR
| )) | ||
| ch_fastqscreen_refs = channel.fromList( | ||
| samplesheetToList( | ||
| params.fastq_screen_references, |
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.
So for me this should not be done at this level, but in the root main.nf.
And no params should be used as is at this level, but coming from the root main.nf too.
| } | ||
| else { | ||
| // Build index from reference FASTA when no pre-built index is provided | ||
| BWAMEM2_INDEX( |
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 have a feeling this should be done in a separate prepare genome subworkflows prior to this actual workflow, happy to talk with you about some refactoring
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.
Yes sure!
| SAMTOOLS_FAIDX( | ||
| ch_reference_fasta, | ||
| ch_dummy_fai, | ||
| true, | ||
| ) |
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 have a feeling this should be done in a separate prepare genome subworkflows prior to this actual workflow, happy to talk with you about some refactoring
maxulysse
left a comment
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 feel like there is a bit of leftover from another PR regarding some picard tools, but that's really minor.
For me the code work as it should and that's good.
I do think all the references preparation should stripped out of the worklfow and moved out to a separate one.
But I think it's some refactoring that could be done separately.
Params should only be used in the root main.nf script, otherwise Nextflow will start complaining in future version very soon, but that can be done separately as well
PR checklist
nf-core lint).nf-test test main.nf.test -profile test,docker).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).