Skip to content

Commit

Permalink
create empty ref list for accurate mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DOH-JDJ0303 committed Feb 6, 2024
1 parent 25e3da1 commit 3b39bb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/local/summarize_taxa.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ process SUMMARIZE_TAXA {

output:
tuple val(meta), path("*.ref-summary.csv"), emit: ref_summary, optional: true
tuple val(meta), path("*.ref-list.csv"), emit: ref_list, optional: true
tuple val(meta), path("*.ref-list.csv"), emit: ref_list
tuple val(meta), path("*.sm-summary.csv"), emit: sm_summary

when:
Expand All @@ -27,9 +27,11 @@ process SUMMARIZE_TAXA {
fi
#---- REFERENCE SELECTION: ACCURATE ----#
if [ "${params.mode}" == "accurate" && -s ${ref_info} ]
if [ "${params.mode}" == "accurate" ] && [ -s ${ref_info} ]
then
ref-select_accurate.R ${ref_info} ${refs_comp} ${prefix} ${params.gen_frac}
else
touch ${prefix}.ref-list.csv
fi
#---- TAXA SUMMARY ----#
Expand Down

0 comments on commit 3b39bb7

Please sign in to comment.