Skip to content

Commit

Permalink
added filter
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Jul 25, 2024
1 parent 3f99b24 commit bd9cd8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions donut_falls.nf
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ if (params.sample_sheet) {
.map { it ->
meta = [id:it.sample]
tuple( meta,
"${it.fastq}",
file("${it.fastq}", checkIfExists: true),
"${it.fastq_1}",
"${it.fastq_2}" )
"${it.fastq_2}")
}
.set{ ch_input_files }
} else {
Expand All @@ -110,7 +110,7 @@ if (params.sample_sheet) {
// channel for illumina files (paired-end only)
ch_input_files
.filter { it[2] != it[3] }
.map { it -> tuple (it[0], [file(it[2], checkIfExists: true), file(it[3], checkIfExists: true)])}
.map { it -> tuple(it[0], [file(it[2], checkIfExists: true), file(it[3], checkIfExists: true)])}
.set { ch_illumina_input }

// channel for nanopore files
Expand Down Expand Up @@ -1859,7 +1859,7 @@ workflow DONUT_FALLS {
ch_consensus = ch_consensus.mix(dnaapler.out.fasta).mix(medaka.out.fasta).mix(polypolish.out.fasta).mix(pypolca.out.fasta)
}

nanoplot(ch_nanopore_input.mix(ch_illumina_input))
nanoplot(ch_nanopore_input.mix(ch_illumina_input.filter{it[1]}))

nanoplot.out.summary
.collectFile(name: "nanoplot_summary.csv",
Expand Down

0 comments on commit bd9cd8b

Please sign in to comment.