Skip to content

Commit

Permalink
made adapters channel instead of meta
Browse files Browse the repository at this point in the history
  • Loading branch information
svarona committed Oct 25, 2024
1 parent 694ab44 commit e963569
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 25 deletions.
19 changes: 13 additions & 6 deletions modules/nf-core/cutadapt/cutadapt.diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions modules/nf-core/cutadapt/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions workflows/illumina.nf
Original file line number Diff line number Diff line change
Expand Up @@ -577,27 +577,17 @@ workflow ILLUMINA {
//
ch_cutadapt_multiqc = Channel.empty()
if (params.protocol == 'amplicon' && !params.skip_assembly && !params.skip_cutadapt) {
ch_primers = PREPARE_GENOME.out.primer_fasta.collect { it[1] }
if (!params.skip_noninternal_primers){
PREPARE_PRIMER_FASTA(
PREPARE_GENOME.out.primer_fasta.collect { it[1] }
)
ch_assembly_fastq
.map { info, reads ->
def meta = info +
[primers: PREPARE_PRIMER_FASTA.out.adapters.value]
return [meta, reads] }
.set{ ch_assembly_fastq }
} else {
ch_assembly_fastq
.map { info, reads ->
def meta = info +
[primers: PREPARE_GENOME.out.primer_fasta.value[1]]
return [meta, reads] }
.set{ ch_assembly_fastq }
ch_primers = PREPARE_PRIMER_FASTA.out.adapters
}

CUTADAPT (
ch_assembly_fastq
ch_assembly_fastq,
ch_primers
)
ch_assembly_fastq = CUTADAPT.out.reads
ch_cutadapt_multiqc = CUTADAPT.out.log
Expand Down

0 comments on commit e963569

Please sign in to comment.