Skip to content

Commit

Permalink
fixed ch_reads_contigs
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Jan 9, 2025
1 parent 294cac0 commit 92adccb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions workflows/grandeur.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,25 @@ workflow GRANDEUR {
version_script

main:
ch_for_multiqc = Channel.empty()
ch_for_summary = ch_genome_sizes
ch_for_flag = Channel.empty()
ch_versions = Channel.empty()

ch_for_multiqc = Channel.empty()
ch_for_summary = ch_genome_sizes
ch_for_flag = Channel.empty()
ch_versions = Channel.empty()
ch_reads_contigs = ch_fastas.map{it -> tuple(it[0], it[1], null)}


if ( params.sample_sheet || params.reads || params.sra_accessions ) {
DE_NOVO_ALIGNMENT(ch_raw_reads)

ch_assembled = DE_NOVO_ALIGNMENT.out.contigs
ch_contigs = ch_fastas.mix(DE_NOVO_ALIGNMENT.out.contigs)
ch_reads_contigs = ch_fastas.map{it -> tuple{it[0], it[1], null}}.mix(DE_NOVO_ALIGNMENT.out.reads_contigs)
ch_reads_contigs = ch_reads_contigs.mix(DE_NOVO_ALIGNMENT.out.reads_contigs)
ch_clean_reads = DE_NOVO_ALIGNMENT.out.clean_reads
ch_for_multiqc = ch_for_multiqc.mix(DE_NOVO_ALIGNMENT.out.for_multiqc)
ch_versions = ch_versions.mix(DE_NOVO_ALIGNMENT.out.versions)

} else {
ch_contigs = ch_fastas
ch_reads_contigs = Channel.empty()
ch_clean_reads = Channel.empty()
ch_assembled = Channel.empty()
}
Expand Down

0 comments on commit 92adccb

Please sign in to comment.