Skip to content

Commit

Permalink
Merge pull request #371 from genomic-medicine-sweden/370-fix-channel-…
Browse files Browse the repository at this point in the history
…of-bug

Fix channel of bug
  • Loading branch information
ryanjameskennedy authored Nov 13, 2024
2 parents 516219d + c871044 commit 999b2bd
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 117 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed `nextflow.hopper.config` `symlinkDir`
- Removed serotypefinder from saureus workflow
- Fixed jasen running only on the first row/sample in csv
- Fixed channel problem by changing `Channel.of([])` to `Channel.value([])`

### Changed

Expand Down
6 changes: 1 addition & 5 deletions configs/nextflow.base.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ params {
pointfinderDb = "${root}/assets/pointfinder_db"
serotypefinderDb = "${root}/assets/serotypefinder_db"
virulencefinderDb = "${root}/assets/virulencefinder_db"
mlstBlastDb = "${root}/assets/mlst_db/blast"
pubMlstDb = "${root}/assets/mlst_db/pubmlst"
krakenDb = "/filepath/to/kraken_db" //edit if useKraken = true
workDir = "/filepath/to/workdir" //edit
Expand Down Expand Up @@ -32,7 +33,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/staphylococcus_aureus/bed/GCF_000012045.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed/Staphylococcus_aureus.trn"
Expand All @@ -51,7 +51,6 @@ profiles {
// params.chewbbacaDb = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed"
// params.coreLociBed = "${params.root}/assets/cgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
// params.trainingFile = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed/Escherichia_coli.trn"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/wgmlst/escherichia_coli/alleles/ecoli_INNUENDO_wgMLST"
params.coreLociBed = "${params.root}/assets/wgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
params.shigapassDb = "${params.root}/assets/ShigaPass/SCRIPT/ShigaPass_DataBases"
Expand All @@ -68,7 +67,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/bed/GCF_000240185.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed/Klebsiella_pneumoniae.trn"
Expand Down Expand Up @@ -99,7 +97,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/streptococcus_pyogenes/bed/GCF_900475035.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed/Streptococcus_pyogenes.trn"
Expand All @@ -115,7 +112,6 @@ profiles {
params.referenceGenome = null
params.referenceGenomeIdx = null
params.referenceGenomeGff = null
params.mlstBlastDb = null
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus/alleles_rereffed"
params.shigapassDb = null
params.coreLociBed = null
Expand Down
6 changes: 1 addition & 5 deletions configs/nextflow.ci.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ params {
pointfinderDb = "${root}/assets/pointfinder_db"
serotypefinderDb = "${root}/assets/serotypefinder_db"
virulencefinderDb = "${root}/assets/virulencefinder_db"
mlstBlastDb = "${root}/assets/mlst_db/blast"
pubMlstDb = "${root}/assets/mlst_db/pubmlst"
krakenDb = "/tmp/jsn" //edit if useKraken = true
workDir = "/tmp/jsn" //edit
Expand Down Expand Up @@ -36,7 +37,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/staphylococcus_aureus/bed/GCF_000012045.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed/Staphylococcus_aureus.trn"
Expand All @@ -55,7 +55,6 @@ profiles {
// params.chewbbacaDb = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed"
// params.coreLociBed = "${params.root}/assets/cgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
// params.trainingFile = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed/Escherichia_coli.trn"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/wgmlst/escherichia_coli/alleles/ecoli_INNUENDO_wgMLST"
params.coreLociBed = "${params.root}/assets/wgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
params.shigapassDb = "${params.root}/assets/ShigaPass/SCRIPT/ShigaPass_DataBases"
Expand All @@ -72,7 +71,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/bed/GCF_000240185.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed/Klebsiella_pneumoniae.trn"
Expand Down Expand Up @@ -103,7 +101,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/streptococcus_pyogenes/bed/GCF_900475035.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed/Streptococcus_pyogenes.trn"
Expand All @@ -119,7 +116,6 @@ profiles {
params.referenceGenome = null
params.referenceGenomeIdx = null
params.referenceGenomeGff = null
params.mlstBlastDb = null
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus/alleles_rereffed"
params.shigapassDb = null
params.coreLociBed = null
Expand Down
6 changes: 1 addition & 5 deletions configs/nextflow.dev.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ params {
pointfinderDb = "${root}/assets/pointfinder_db"
serotypefinderDb = "${root}/assets/serotypefinder_db"
virulencefinderDb = "${root}/assets/virulencefinder_db"
mlstBlastDb = "${root}/assets/mlst_db/blast"
pubMlstDb = "${root}/assets/mlst_db/pubmlst"
krakenDb = "/fs1/resources/ref/micro/krakenstd"
// INPUT & OUTPUT //
Expand Down Expand Up @@ -45,7 +46,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/staphylococcus_aureus/bed/GCF_000012045.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed/Staphylococcus_aureus.trn"
Expand All @@ -65,7 +65,6 @@ profiles {
// params.chewbbacaDb = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed"
// params.coreLociBed = "${params.root}/assets/cgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
// params.trainingFile = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed/Escherichia_coli.trn"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/wgmlst/escherichia_coli/alleles/ecoli_INNUENDO_wgMLST"
params.shigapassDb = "${params.root}/assets/ShigaPass/SCRIPT/ShigaPass_DataBases"
params.coreLociBed = "${params.root}/assets/wgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
Expand All @@ -83,7 +82,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/bed/GCF_000240185.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed/Klebsiella_pneumoniae.trn"
Expand Down Expand Up @@ -115,7 +113,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_000006785.2.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_000006785.2.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_000006785.2.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/streptococcus_pyogenes/bed/GCF_000006785.2.bed"
params.trainingFile = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed/Streptococcus_pyogenes.trn"
Expand All @@ -131,7 +128,6 @@ profiles {
params.referenceGenome = null
params.referenceGenomeIdx = null
params.referenceGenomeGff = null
params.mlstBlastDb = null
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus/alleles_rereffed"
params.shigapassDb = null
params.coreLociBed = null
Expand Down
6 changes: 1 addition & 5 deletions configs/nextflow.hopper.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ params {
pointfinderDb = "${root}/assets/pointfinder_db"
serotypefinderDb = "${root}/assets/serotypefinder_db"
virulencefinderDb = "${root}/assets/virulencefinder_db"
mlstBlastDb = "${root}/assets/mlst_db/blast"
pubMlstDb = "${root}/assets/mlst_db/pubmlst"
krakenDb = "/fs1/resources/ref/micro/krakenstd"
// INPUT & OUTPUT //
Expand Down Expand Up @@ -44,7 +45,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/staphylococcus_aureus/bed/GCF_000012045.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed/Staphylococcus_aureus.trn"
Expand All @@ -64,7 +64,6 @@ profiles {
// params.chewbbacaDb = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed"
// params.coreLociBed = "${params.root}/assets/cgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
// params.trainingFile = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed/Escherichia_coli.trn"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/wgmlst/escherichia_coli/alleles/ecoli_INNUENDO_wgMLST"
params.coreLociBed = "${params.root}/assets/wgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
params.shigapassDb = "${params.root}/assets/ShigaPass/SCRIPT/ShigaPass_DataBases"
Expand All @@ -82,7 +81,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/bed/GCF_000240185.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed/Klebsiella_pneumoniae.trn"
Expand Down Expand Up @@ -115,7 +113,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/streptococcus_pyogenes/bed/GCF_900475035.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed/Streptococcus_pyogenes.trn"
Expand All @@ -131,7 +128,6 @@ profiles {
params.referenceGenome = null
params.referenceGenomeIdx = null
params.referenceGenomeGff = null
params.mlstBlastDb = null
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus/alleles_rereffed"
params.shigapassDb = null
params.coreLociBed = null
Expand Down
12 changes: 4 additions & 8 deletions configs/nextflow.ngp.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ params {
penv = "OpenMP"
root = "/gms-apps/pipelines/jasen" //edit
amrfinderDb = "${root}/assets/amrfinder_db/latest"
resfinderDb = "${params.root}/assets/resfinder_db"
pointfinderDb = "${params.root}/assets/pointfinder_db"
resfinderDb = "${root}/assets/resfinder_db"
pointfinderDb = "${root}/assets/pointfinder_db"
serotypefinderDb = "${root}/assets/serotypefinder_db"
virulencefinderDb = "${params.root}/assets/virulencefinder_db"
virulencefinderDb = "${root}/assets/virulencefinder_db"
mlstBlastDb = "${root}/assets/mlst_db/blast"
pubMlstDb = "${root}/assets/mlst_db/pubmlst"
krakenDb = "/gms-home/isasyl/code/JASEN" //edit if useKraken = true
workDir = "/gms-apps/pipelines/jasen/trash" //edit
Expand Down Expand Up @@ -58,7 +59,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/staphylococcus_aureus/GCF_000012045.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/staphylococcus_aureus/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/staphylococcus_aureus/bed/GCF_000012045.1.bed"
params.trainingFile = "${params.root}/assets/prodigal_training_files/Staphylococcus_aureus.trn"
Expand All @@ -77,7 +77,6 @@ profiles {
// params.chewbbacaDb = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed"
// params.coreLociBed = "${params.root}/assets/cgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
// params.trainingFile = "${params.root}/assets/cgmlst/escherichia_coli/alleles_rereffed/Escherichia_coli.trn"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/wgmlst/escherichia_coli/alleles/ecoli_INNUENDO_wgMLST"
params.coreLociBed = "${params.root}/assets/wgmlst/escherichia_coli/bed/GCF_000005845.2.bed"
params.shigapassDb = "${params.root}/assets/ShigaPass/SCRIPT/ShigaPass_DataBases"
Expand All @@ -94,7 +93,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/klebsiella_pneumoniae/GCF_000240185.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/bed/GCF_000240185.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/klebsiella_pneumoniae/alleles_rereffed/Klebsiella_pneumoniae.trn"
Expand Down Expand Up @@ -125,7 +123,6 @@ profiles {
params.referenceGenome = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.fasta"
params.referenceGenomeIdx = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.fasta.fai"
params.referenceGenomeGff = "${params.root}/assets/genomes/streptococcus_pyogenes/GCF_900475035.1.gff"
params.mlstBlastDb = "${params.root}/assets/mlst_db/blast"
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed"
params.coreLociBed = "${params.root}/assets/cgmlst/streptococcus_pyogenes/bed/GCF_900475035.1.bed"
params.trainingFile = "${params.root}/assets/cgmlst/streptococcus_pyogenes/alleles_rereffed/Streptococcus_pyogenes.trn"
Expand All @@ -141,7 +138,6 @@ profiles {
params.referenceGenome = null
params.referenceGenomeIdx = null
params.referenceGenomeGff = null
params.mlstBlastDb = null
params.chewbbacaDb = "${params.root}/assets/cgmlst/streptococcus/alleles_rereffed"
params.shigapassDb = null
params.coreLociBed = null
Expand Down
Loading

0 comments on commit 999b2bd

Please sign in to comment.