Skip to content

Commit

Permalink
Fixed failing tests, added configs, and added pipeline test
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonJM committed Apr 24, 2024
1 parent c898845 commit ca812fc
Show file tree
Hide file tree
Showing 28 changed files with 254 additions and 450 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- checks_requested
branches:
- master
- dev

env:
NXF_ANSI_LOG: false
Expand Down
8 changes: 5 additions & 3 deletions assets/samplesheet.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sample,fastq_1,fastq_2
SAMPLE_PAIRED_END,/path/to/fastq/files/AEG588A1_S1_L002_R1_001.fastq.gz,/path/to/fastq/files/AEG588A1_S1_L002_R2_001.fastq.gz
SAMPLE_SINGLE_END,/path/to/fastq/files/AEG588A4_S4_L003_R1_001.fastq.gz,
sample,replicate,group,fastq_1,fastq_2
test1,rep1,group1,https://github.com/nf-core/test-datasets/raw/modules/data/genomics/prokaryotes/bacteroides_fragilis/illumina/fastq/test1_1.fastq.gz,https://github.com/nf-core/test-datasets/raw/modules/data/genomics/prokaryotes/bacteroides_fragilis/illumina/fastq/test1_2.fastq.gz
test1,rep2,group1,https://github.com/nf-core/test-datasets/raw/modules/data/genomics/prokaryotes/bacteroides_fragilis/illumina/fastq/test2_1.fastq.gz,https://github.com/nf-core/test-datasets/raw/modules/data/genomics/prokaryotes/bacteroides_fragilis/illumina/fastq/test2_2.fastq.gz
test2,rep1,group1,https://github.com/nf-core/test-datasets/raw/modules/data/genomics/prokaryotes/candidatus_portiera_aleyrodidarum/illumina/fastq/test_1.fastq.gz,https://github.com/nf-core/test-datasets/raw/modules/data/genomics/prokaryotes/candidatus_portiera_aleyrodidarum/illumina/fastq/test_2.fastq.gz

42 changes: 0 additions & 42 deletions conf/modules.config

This file was deleted.

45 changes: 0 additions & 45 deletions conf/test_data.config

This file was deleted.

18 changes: 0 additions & 18 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,6 @@ workflow {
)
}


/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPLETION EMAIL AND SUMMARY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

workflow.onComplete {
if (params.email || params.email_on_fail) {
NfcoreTemplate.email(workflow, params, summary_params, projectDir, log, multiqc_report)
}
NfcoreTemplate.summary(workflow, params, log)
if (params.hook_url) {
NfcoreTemplate.IM_notification(workflow, params, summary_params, projectDir, log)
}
}


/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
THE END
Expand Down
10 changes: 10 additions & 0 deletions modules/local/kneaddata/database/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
process {
withName: KNEADDATA_DATABASE {
publishDir = [
enabled: params.kneaddata_save_db,
path: { "${params.outdir}/ReadPreprocessing/kneaddata/database" },
mode: params.publish_dir_mode,
pattern: 'kneaddata_*/',
]
}
}
17 changes: 17 additions & 0 deletions modules/local/kneaddata/kneaddata/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
process {
withName: KNEADDATA_KNEADDATA {
publishDir = [
[
path: { "${params.outdir}/ReadPreprocessing/kneaddata/kneaddata" },
mode: params.publish_dir_mode,
pattern: '*_kneaddata_paired_*.fastq.gz'
],
[
path: { "${params.outdir}/ReadPreprocessing/kneaddata/kneaddata" },
mode: params.publish_dir_mode,
pattern: '*_kneaddata.log'
]
]
ext.args = params.kneaddata_options ? params.kneaddata_options : ""
}
}
8 changes: 4 additions & 4 deletions modules/local/kneaddata/kneaddata/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"id": "test"
},
[
"test_kneaddata_paired_1.fastq.gz:md5,bc575548c0169cf3f12c38590060cbec",
"test_kneaddata_paired_2.fastq.gz:md5,6dd6bd3bcb33e9dda68afa0c78a33b2d"
"test_kneaddata_paired_1.fastq.gz:md5,acba94fdc94d1e4229beec12086a93af",
"test_kneaddata_paired_2.fastq.gz:md5,7c8a08782ad6705eced33d11d5032859"
]
]
],
Expand All @@ -20,7 +20,7 @@
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-04-24T10:06:32.04321443"
"timestamp": "2024-04-24T11:11:09.743832394"
},
"fastq.gz - stub": {
"content": [
Expand Down Expand Up @@ -75,6 +75,6 @@
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-04-24T10:06:43.652978972"
"timestamp": "2024-04-24T11:11:19.559542979"
}
}
6 changes: 6 additions & 0 deletions modules/local/kneaddata/readcounts/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- bioconda::kneaddata=0.12.0
9 changes: 9 additions & 0 deletions modules/local/kneaddata/readcounts/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
process {
withName: KNEADDATA_READCOUNTS {
publishDir = [
path: { "${params.outdir}/ReadPreprocessing/kneaddata/readcounts" },
mode: params.publish_dir_mode,
pattern: '*_kneaddata_read_counts.tsv'
]
}
}
9 changes: 9 additions & 0 deletions modules/local/metaphlan/sgbtogtdbprofile/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
process {
withName: METAPHLAN_SGBTOGTDBPROFILE {
publishDir = [
path: { "${params.outdir}/ReadTaxonomy/metaphlan/sgbtogtdbprofile" },
mode: params.publish_dir_mode,
pattern: '*_gtdb_profile.txt'
]
}
}
9 changes: 9 additions & 0 deletions modules/nf-core/cat/fastq/nextflow.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions modules/nf-core/fastqc/nextflow.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions modules/nf-core/metaphlan/makedb/nextflow.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions modules/nf-core/metaphlan/metaphlan/nextflow.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions modules/nf-core/multiqc/nextflow.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,26 @@ params {
// TODO nf-core: Specify your pipeline's command line flags
// Input options
input = null
run_runmerging = true
run_runmerging = false

// KneadData options
run_kneaddata = true
run_kneaddata = false
kneaddata_db = null
kneaddata_db_version = 'human_genome'
kneaddata_save_db = false
kneaddata_trimmomatic_path = '/usr/local/share/trimmomatic-0.39-2'
kneaddata_options = null

// MetaPhlAn options
run_metaphlan = true
run_metaphlan = false
metaphlan_db = null
metaphlan_db_version = null
metaphlan_save_db = false
metaphlan_options = null
metaphlan_sgb2gtbd_file = "https://github.com/biobakery/MetaPhlAn/raw/master/metaphlan/utils/mpa_vOct22_CHOCOPhlAnSGB_202212_SGB2GTDB.tsv"

// HUMAnN options
run_humann = true
run_humann = false
chocophlan_db_version ='DEMO'
uniref_db_version ='DEMO_diamond'
utility_mapping_version ='DEMO'
Expand Down Expand Up @@ -250,9 +252,6 @@ manifest {
doi = ''
}

// Load modules.config for DSL2 module specific options
includeConfig 'conf/modules.config'

// Function to ensure that resource requirements don't go beyond
// a maximum limit
def check_max(obj, type) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
includeConfig '../../../modules/local/kneaddata/database/nextflow.config'
includeConfig '../../../modules/local/kneaddata/kneaddata/nextflow.config'
includeConfig '../../../modules/local/kneaddata/readcounts/nextflow.config'
Loading

0 comments on commit ca812fc

Please sign in to comment.