remove the mgc in metadata for motus_profile.

This commit is contained in:
JIANHONG OU 2022-05-08 06:21:26 -04:00
parent 9b50036e9b
commit b2542ee079
2 changed files with 3 additions and 6 deletions

View file

@ -25,7 +25,7 @@ process MOTUS_PROFILE {
def prefix = task.ext.prefix ?: "${meta.id}"
def inputs = "$reads[0]".getExtension == ('.bam') ?
"-i ${reads}" :
meta.mgc ? "-m $reads" :
"$reads[0]".getExtension == ('.mgc') ? "-m $reads" :
meta.single_end ?
"-s $reads" : "-f ${reads[0]} -r ${reads[1]}"
def refdb = db ? "-db ${db}" : ""

View file

@ -20,8 +20,6 @@ input:
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
If input file is the mgc read counts table, the mgc should be set to `true`
e.g. [ id:'test', single_end:false, mgc:true ]
- reads:
type: file
description: |
@ -29,9 +27,8 @@ input:
respectively.
Or the intermediate bam file mapped by bwa to the mOTUs database or
the output bam file from motus profile.
Or the intermediate mgc read counts table. Please note if mgc table is input,
the `mgc` in metadata must be `true`.
pattern: "*.{fastq,fq,fasta,fa,fastq.gz,fq.gz,fasta.gz,fa.gz,.bam,.tsv,.txt,.mgc}"
Or the intermediate mgc read counts table.
pattern: "*.{fastq,fq,fasta,fa,fastq.gz,fq.gz,fasta.gz,fa.gz,.bam,.mgc}"
- db:
type: directory
description: |