Skip to content

Commit

Permalink
refactor: Improve warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Sep 5, 2023
1 parent 4e8649e commit 1ca7a13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions subworkflows/local/assemblyqc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ workflow CHECK_ASSEMBLIES {
filtered_assemblies = assemblies

if (params.apply_filtering) {
println 'WARNING: Your assemblies are being filtered \n(--apply_filtering is true)'
println '\033[0;33mWARN: Your assemblies are being filtered (--apply_filtering is true)'

QUAST.out.transposed_report
.splitCsv(header: true, sep: '\t')
Expand All @@ -62,7 +62,7 @@ workflow CHECK_ASSEMBLIES {
}

emit:
filtered_assemblies
assemblies = filtered_assemblies
quast_report = QUAST.out.transposed_report
assemblyqc_software = ch_software_versions
multiqc = ch_multiqc_files
Expand Down
4 changes: 2 additions & 2 deletions workflows/arete.nf
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ workflow ARETE {
ch_software_versions = ch_software_versions.mix(CHECK_ASSEMBLIES.out.assemblyqc_software)

if (params.apply_filtering) {
CHECK_ASSEMBLIES.out.filtered_assemblies
CHECK_ASSEMBLIES.out.assemblies
.set { assemblies }
}

Expand Down Expand Up @@ -380,7 +380,7 @@ workflow ANNOTATION {
ch_multiqc_files = ch_multiqc_files.mix(CHECK_ASSEMBLIES.out.multiqc)

if (params.apply_filtering) {
CHECK_ASSEMBLIES.out.filtered_assemblies
CHECK_ASSEMBLIES.out.assemblies
.set { assemblies }
}
}
Expand Down

0 comments on commit 1ca7a13

Please sign in to comment.