Skip to content

Commit

Permalink
output unmerged reads
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Jan 12, 2024
1 parent 84c009f commit 8dd4ba8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ process dada_dereplicate {
path("counts.csv")
path("overlaps.csv")
path("dada.rds")
path("unmerged_F.fasta")
path("unmerged_R.fasta")

publishDir "${params.output}/dada/${sampleid}/${orientation}/", overwrite: true, mode: 'copy'

Expand All @@ -288,6 +290,9 @@ process dada_dereplicate {
--seqtab-r2 seqtab_r2.csv \
--counts counts.csv \
--overlaps overlaps.csv
get_unmerged.R dada.rds \
--forward-seqs unmerged_F.fasta \
--reverse-seqs unmerged_R.fasta
"""
}

Expand Down Expand Up @@ -521,7 +526,7 @@ workflow {
(models, _) = learn_errors(filtered.groupTuple(by: [1, 2])) // by: [batch, orientation]
// transpose/expand out sampleids and join models back into filtered channel
filtered = filtered.join(models.transpose(), by: [0, 1, 2]) // by: [sampleid, batch, orientation]
(merged, r1, r2, dada_counts, overlaps, _) = dada_dereplicate(filtered, dada_params)
(merged, r1, r2, dada_counts, overlaps, _, _, _) = dada_dereplicate(filtered, dada_params)
combined_overlaps(overlaps.collect())
seqtabs = merged.concat(r1, r2)

Expand Down

0 comments on commit 8dd4ba8

Please sign in to comment.