-
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
95 remove hardcoded nextflowconfig paths #97
base: master
Are you sure you want to change the base?
Conversation
nextflow.config
Outdated
save_trimmed_fail = false // Check if reads failed in the trimming process need to be saved (True/False, default: False) | ||
save_merged = true // Check if merged reads need to be saved (True/False, default: True) | ||
trim_tool = "fastp" // Select which trimming tool to use (fastp/trimmomatic/trimgalore) | ||
adapter_fasta = null // location for adapator database (fasta file) |
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.
"null" expected by fastp
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.
Corrected, changed to 'null'
nanopore_summary_file = "/mnt/cidgoh-object-storage/hackathon/seqqc/isolate_wgs/nanopore/run_summary/sequencing_summary_FAT24492_18678559.txt" | ||
// ID for nanopore summary file to be used by PycoQC | ||
nanopore_summary_file_id = 'test' | ||
nanopore_summary_file = null // Path to nanopore summary file to be used by PycoQC |
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 is correct, but need to update the nanopore_raw_reads_qc subworkflow to check for file. If file is not provided, empty channel [[],[]]
should be passed
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.
Added logic evaluation to run PYCOQC only if summary file is available. Name is obtained directly from summary file instead of the nanopore_summary_file_id
Test: working with and without providing the path to the summary file
nextflow.config
Outdated
// ID for nanopore summary file to be used by PycoQC | ||
nanopore_summary_file_id = 'test' | ||
nanopore_summary_file = null // Path to nanopore summary file to be used by PycoQC | ||
nanopore_summary_file_id = 'test' // ID for nanopore summary file to be used by PycoQC |
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.
remove this parameter and update in the subworkflow to take file name as meta.id
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.
Fix: params.nanopore_summary_file
is used to obtain an id tag
classified_reads = true | ||
// Boolean for whether to output unclassified reads as a fastq file | ||
unclassified_reads = true | ||
kraken2_db = null // Path to Kraken2 database used for querying reads during taxonomic classification |
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.
when specifying null for a path value, we need to test if it throws an error when the module/sub-workflow is skipped
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.
fix: improved logical evaluation of databases in taxonomy_qc
, updated centrifuge pipeline
subworkflows/local/seqqc.nf
Outdated
// Validate database paths | ||
// | ||
|
||
if (!params.skip_kraken2) { |
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.
move these tests to specific subworkflows
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.
Fix: moved to taxonomy_qc
, raw_reads_qc
, or assembly_qc
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.
test for the database paths when null. move the validation to specific sub-workflows.
--point
mutations in resfinder if a species is not specifiedPR checklist
nf-core lint
).nf-test test main.nf.test -profile test,docker
).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).