Skip to content

Commit

Permalink
correct --input_type
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyAnderssonLee committed Jul 6, 2023
1 parent d3a6cd6 commit dd18de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nf-core/metaphlan/metaphlan/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ process METAPHLAN_METAPHLAN {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def input_type = ("$input".endsWith(".fastq.gz") || "$input".endsWith(".fq.gz")) ? "--input_type fastq" : ("$input".contains(".fasta")|| "$input".endsWith(".fa.gz")) ? "--input_type fasta" : ("$input".endsWith(".bowtie2out.txt")) ? "--input_type bowtie2out" : "--input_type sam"
def input_type = "$input" =~ /.*\.(fastq|fq)/ ? "--input_type fastq" : "$input" =~ /.*\.(fasta|fna|fa)/ ? "--input_type fasta" : "$input".endsWith(".bowtie2out.txt") ? "--input_type bowtie2out" : "--input_type sam"
def input_data = ("$input_type".contains("fastq")) && !meta.single_end ? "${input[0]},${input[1]}" : "$input"
def bowtie2_out = "$input_type" == "--input_type bowtie2out" || "$input_type" == "--input_type sam" ? '' : "--bowtie2out ${prefix}.bowtie2out.txt"

Expand Down

0 comments on commit dd18de6

Please sign in to comment.