Skip to content

Commit

Permalink
removed countFastq
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Apr 24, 2024
1 parent 0a29b2f commit afbe0a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions subworkflows/de_novo_alignment.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ workflow de_novo_alignment {
bbduk(reads)
fastp(bbduk.out.fastq)

fastp.out.fastq.view()

fastp.out.fastq
.map{it -> tuple(it , it[1][0].splitFastq( limit: params.minimum_reads , file: true) | count)}
.view{ "From fastp : $it" }
.join(fastp.out.fastp_results)
.filter ({ it[2] as int >= params.minimum_reads })
.map ( it -> tuple (it[0], it[1]))
.set{ read_check }

spades(fastp.out.fastq.filter{it[1][0].countFastq() >= params.minimum_reads})
spades(read_check)

emit:
// for downstream analyses
Expand Down

0 comments on commit afbe0a6

Please sign in to comment.