Skip to content

Commit

Permalink
update process names and use script for plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
cjfields committed Apr 5, 2024
1 parent ce238f8 commit 7ac81d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion modules/local/assigntaxaspecies.nf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process ASSIGNTAXASPECIES {
process ASSIGN_TAXA_SPECIES {
label 'process_medium'

container "ghcr.io/h3abionet/tada:dev"
Expand Down
14 changes: 2 additions & 12 deletions modules/local/plotqualityprofile.nf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process PLOTQUALITYPROFILE {
process PLOT_QUALITY_PROFILE {
tag "$meta.id"
label 'process_low'

Expand All @@ -23,17 +23,7 @@ process PLOTQUALITYPROFILE {
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
#!/usr/bin/env Rscript
suppressPackageStartupMessages(library(dada2))
suppressPackageStartupMessages(library(tidyverse))
fns <- list.files(pattern="fastq.gz", full.names=TRUE)
pl <- plotQualityProfile(fns)
ggsave("${meta.id}.qualities.pdf", plot=pl, device="pdf")
# we may revisit the quality scores and other info in this plot for other purposes
saveRDS(pl, "${meta.id}.qualities.RDS")
plot_quality_profile.R --id ${meta.id}
"""

stub:
Expand Down

0 comments on commit 7ac81d1

Please sign in to comment.