-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifications after extensively iterations on Virtual Machine (#86)
* reformat reads input handling * dev-iteration on input handling * Revert "reformat reads input handling" This reverts commit 311be5a. * fix container configurations * make tbfull use more cpus than a normal process * fix genome name handling on cohor analysis * replace cohort sample generation by the same used on normal analysis * tweak input name on cohort analysis * iterate around sample tsv file generation * replace reads_ch by genome_names * testing if adding `$` will fix the genome_names error * use meta.id instead of it * Revert "use meta.id instead of it" This reverts commit 2c9a4e8. * remove stilystic change * Accommodating the new `QC` workflow * Accommodate `REPORT` workflow and import MTBSEQ_NF on the main workflow * remove version collection from mtbseq modules * remove unecessary comment on main.nf * fix module importation on qc and report * fix typo in report workflow * comment run main workflow * fix QC.out.ch_versions * move includes to the report subworkflow * tweak on includes * early optimization before benchmark * emit multiqc_report on mtbseqnf * implement base labels before benchmark * itereation on tbpile after first benchmark * implement optimization after first benchmark * tweak the labels [ci skip] --------- Co-authored-by: Abhinav Sharma <[email protected]>
- Loading branch information
Showing
18 changed files
with
112 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
include { FASTQC } from '../../../modules/nf-core/fastqc/main' | ||
|
||
|
||
|
||
|
||
workflow QC { | ||
take: | ||
ch_samplesheet | ||
|
||
main: | ||
ch_versions = Channel.empty() | ||
ch_multiqc_files = Channel.empty() | ||
|
||
FASTQC (ch_samplesheet) | ||
|
||
ch_multiqc_files = ch_multiqc_files.mix(FASTQC.out.zip.collect{it[1]}) | ||
ch_versions = ch_versions.mix(FASTQC.out.versions.first()) | ||
|
||
emit: | ||
ch_multiqc_files | ||
ch_versions | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
include { MULTIQC } from '../../../modules/nf-core/multiqc/main' | ||
include { paramsSummaryMap } from 'plugin/nf-validation' | ||
include { paramsSummaryMultiqc } from '../../nf-core/utils_nfcore_pipeline' | ||
include { softwareVersionsToYAML } from '../../nf-core/utils_nfcore_pipeline' | ||
include { methodsDescriptionText } from '../utils_nfcore_mtbseqnf_pipeline' | ||
|
||
|
||
workflow REPORT { | ||
take: | ||
ch_multiqc_files | ||
ch_versions | ||
main: | ||
softwareVersionsToYAML(ch_versions) | ||
.collectFile(storeDir: "${params.outdir}/pipeline_info", name: 'nf_core_pipeline_software_mqc_versions.yml', sort: true, newLine: true) | ||
.set { ch_collated_versions } | ||
|
||
// | ||
// MODULE: MultiQC | ||
// | ||
ch_multiqc_config = Channel.fromPath("$projectDir/assets/multiqc_config.yml", checkIfExists: true) | ||
ch_multiqc_custom_config = params.multiqc_config ? Channel.fromPath(params.multiqc_config, checkIfExists: true) : Channel.empty() | ||
ch_multiqc_logo = params.multiqc_logo ? Channel.fromPath(params.multiqc_logo, checkIfExists: true) : Channel.empty() | ||
summary_params = paramsSummaryMap(workflow, parameters_schema: "nextflow_schema.json") | ||
ch_workflow_summary = Channel.value(paramsSummaryMultiqc(summary_params)) | ||
ch_multiqc_custom_methods_description = params.multiqc_methods_description ? file(params.multiqc_methods_description, checkIfExists: true) : file("$projectDir/assets/methods_description_template.yml", checkIfExists: true) | ||
ch_methods_description = Channel.value(methodsDescriptionText(ch_multiqc_custom_methods_description)) | ||
ch_multiqc_files = ch_multiqc_files.mix(ch_workflow_summary.collectFile(name: 'workflow_summary_mqc.yaml')) | ||
ch_multiqc_files = ch_multiqc_files.mix(ch_collated_versions) | ||
ch_multiqc_files = ch_multiqc_files.mix(ch_methods_description.collectFile(name: 'methods_description_mqc.yaml', sort: false)) | ||
|
||
MULTIQC ( | ||
ch_multiqc_files.collect(), | ||
ch_multiqc_config.toList(), | ||
ch_multiqc_custom_config.toList(), | ||
ch_multiqc_logo.toList() | ||
) | ||
|
||
emit: | ||
multiqc_report = MULTIQC.out.report.toList() // channel: /path/to/multiqc_report.html | ||
versions = ch_versions // channel: [ path(versions.yml) ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters