Skip to content
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

MultiQC update: alignment stats and software versions. #7

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions assets/multiqc_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,19 @@ report_section_order:
export_plots: true

disable_version_detection: true

custom_data:
train:
file_format: "tsv"
section_name: "Training parameter statistics"
plot_type: "table"
last_o2o:
file_format: "tsv"
section_name: "Alignment statistics"
plot_type: "table"

sp:
last_o2o:
fn: "*o2o_aln.tsv"
train:
fn: "*train.tsv"
4 changes: 4 additions & 0 deletions subworkflows/local/pairalign_m2m/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,14 @@ workflow PAIRALIGN_M2M {

emit:

multiqc = Channel.empty()
.mix( LAST_TRAIN.out.multiqc.collect{ it[1]} )
.mix(LAST_SPLIT_O2O.out.multiqc.collect{ it[1]} )
m2m = LAST_LASTAL_M2M.out.maf
m2o = LAST_SPLIT_M2O.out.maf
o2m = LAST_SPLIT_O2M.out.maf
o2o = LAST_SPLIT_O2O.out.maf
versions = LAST_LASTDB.out.versions
}

/*
Expand Down
4 changes: 4 additions & 0 deletions subworkflows/local/pairalign_m2o/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ workflow PAIRALIGN_M2O {

emit:

multiqc = Channel.empty()
.mix( LAST_TRAIN.out.multiqc.collect{ it[1]} )
.mix(LAST_SPLIT_O2O.out.multiqc.collect{ it[1]} )
m2o = LAST_LASTAL_M2O.out.maf
o2o = LAST_SPLIT_O2O.out.maf
versions = LAST_LASTDB.out.versions
}

/*
Expand Down
24 changes: 17 additions & 7 deletions workflows/pairgenomealign.nf
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ workflow PAIRGENOMEALIGN {
ASSEMBLYSCAN (
ch_samplesheet
)
ch_multiqc_files = ch_multiqc_files.mix(ASSEMBLYSCAN.out.json.collect{it[1]})
ch_versions = ch_versions.mix(ASSEMBLYSCAN.out.versions.first())

// Prefix query ids with target genome name before producing alignment files
ch_samplesheet = ch_samplesheet
Expand All @@ -72,6 +70,7 @@ workflow PAIRGENOMEALIGN {
SEQTK_CUTN_TARGET.out.bed,
ch_seqtk_cutn_query
)
pairalign_out = PAIRALIGN_M2O.out
} else {

//
Expand All @@ -83,10 +82,17 @@ workflow PAIRGENOMEALIGN {
SEQTK_CUTN_TARGET.out.bed,
ch_seqtk_cutn_query
)
pairalign_out = PAIRALIGN_M2M.out
}

// Collate and save software versions
//

ch_versions = ch_versions
.mix(SEQTK_CUTN_TARGET.out.versions)
.mix( ASSEMBLYSCAN.out.versions)
.mix( pairalign_out.versions)

softwareVersionsToYAML(ch_versions)
.collectFile(
storeDir: "${params.outdir}/pipeline_info",
Expand Down Expand Up @@ -117,10 +123,12 @@ workflow PAIRGENOMEALIGN {
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_multiqc_files = ch_multiqc_files
.mix(ch_workflow_summary.collectFile(name: 'workflow_summary_mqc.yaml'))
.mix(ASSEMBLYSCAN.out.json.collect{it[1]})
.mix(pairalign_out.multiqc)
.mix(ch_collated_versions)
.mix(
ch_methods_description.collectFile(
name: 'methods_description_mqc.yaml',
sort: true
Expand All @@ -131,7 +139,9 @@ workflow PAIRGENOMEALIGN {
ch_multiqc_files.collect(),
ch_multiqc_config.toList(),
ch_multiqc_custom_config.toList(),
ch_multiqc_logo.toList()
ch_multiqc_logo.toList(),
[],
[]
)

emit:
Expand Down