Skip to content

Commit

Permalink
fix an error with the tag, and address limits for derepFasta that req…
Browse files Browse the repository at this point in the history
…uire limiting the number of processed reads to 100k
  • Loading branch information
cjfields committed Feb 8, 2024
1 parent 90cdee8 commit e29ba5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ if (params.reads != false || params.input != false ) { // TODO maybe we should c
} else {

process PerSampleInferDerepAndMerge {
tag { "PerSampleInferDerepAndMerge: ${meta.id}" }
tag { "PerSampleInferDerepAndMerge:${meta.id}" }
publishDir "${params.outdir}/dada2-Derep-Single/Per-Sample", mode: "copy", overwrite: true

input:
Expand Down
4 changes: 2 additions & 2 deletions templates/PerSampleDadaInfer.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ if (!is.na(dadaOpt)) {
cat("Processing:", "${meta.id}", "\\n")

errF <- readRDS("errors.R1.RDS")
derepF <- derepFastq("${reads[0]}")
derepF <- derepFastq("${reads[0]}", n=100000)
ddF <- dada(derepF, err=errF, multithread=${task.cpus}, pool=as.logical("${params.pool}"))
saveRDS(ddF, "${meta.id}.dd.R1.RDS")

if (file.exists ("errors.R2.RDS")) {
errR <- readRDS("errors.R2.RDS")
derepR <- derepFastq("${reads[1]}")
derepR <- derepFastq("${reads[1]}", n=100000)
ddR <- dada(derepR, err=errR, multithread=${task.cpus}, pool=as.logical("${params.pool}"))
saveRDS(ddR, "${meta.id}.dd.R2.RDS")

Expand Down

0 comments on commit e29ba5d

Please sign in to comment.