Skip to content

Commit

Permalink
make sure one file is used in collapse step
Browse files Browse the repository at this point in the history
this is related to UMI in the fastq files. Address: 
#35
  • Loading branch information
lpantano authored Feb 11, 2020
1 parent 7a139ec commit 7b0bfd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,14 @@ process collapse {
file reads from trimmed_reads_collapse

output:
file 'collapsed/*.fastq' into collapsed_fasta
file 'final/*.fastq' into collapsed_fasta

script:
prefix = reads.toString() - '_trimmed.fq.gz'
"""
seqcluster collapse -f $reads -m 1 --min_size 15 -o collapsed
mv collapsed/${prefix}_trimmed_trimmed.fastq collapsed/${prefix}.fastq
mkdir final
mv collapsed/${prefix}_trimmed_trimmed.fastq final/${prefix}.fastq
"""
}

Expand Down

0 comments on commit 7b0bfd8

Please sign in to comment.