Skip to content

Commit

Permalink
Merge pull request #87 from UPHL-BioNGS/erin-dev
Browse files Browse the repository at this point in the history
Erin dev
  • Loading branch information
erinyoung committed Dec 20, 2021
2 parents 43fe3c3 + 18f3c60 commit bb695c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Cecret.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
println("Currently using the Cecret workflow for use with amplicon-based Illumina hybrid library prep on MiSeq\n")
println("Author: Erin Young")
println("email: [email protected]")
println("Version: v.2.2.20211215")
println("Version: v.2.2.20211220")
println("")

params.reads = workflow.launchDir + '/reads'
Expand Down Expand Up @@ -68,6 +68,10 @@ paried_reads_check
exit 1
}

Channel
.fromPath("${workflow.projectDir}/bin/combine_results.py", type:'file')
.set { combine_results_script }

// reference files for SARS-CoV-2 (part of the github repository)
params.reference_genome = workflow.projectDir + "/configs/MN908947.3.fasta"
params.gff_file = workflow.projectDir + "/configs/MN908947.3.gff"
Expand Down Expand Up @@ -1499,6 +1503,7 @@ process combine_results {
file(pangolin) from pangolin_file.ifEmpty([])
file(vadr) from vadr_file.ifEmpty([])
file(summary) from summary_file.collect()
file(combine_results) from combine_results_script

output:
file("cecret_results.{csv,txt}")
Expand All @@ -1520,8 +1525,7 @@ process combine_results {
if [ -s "vadr.vadr.sqa" ] ; then tail -n +2 "vadr.vadr.sqa" | tr -s '[:blank:]' ',' > vadr.csv ; fi
python !{workflow.projectDir}/bin/combine_results.py
python !{combine_results}
cat cecret_results.csv | tr ',' '\\t' > cecret_results.txt
'''
}
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ profiles {
uphl {
singularity.enabled = true
singularity.autoMounts = true
singularity.cacheDir = 'singularity'
params {
reads = "Sequencing_reads/Raw"
kraken2 = true
Expand Down

0 comments on commit bb695c7

Please sign in to comment.