Skip to content

Commit 9d16c0d

Browse files
authored
Merge branch 'dev' into start-qc
2 parents a4b711e + 22f26b2 commit 9d16c0d

12 files changed

+66
-321
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### `Added`
99

1010
- [#290](https://github.com/nf-core/funcscan/pull/290) Merged pipeline template of nf-core/tools version 2.9, updated references. (by @jfy133)
11+
- [#285](https://github.com/nf-core/funcscan/pull/285) Use nf-validation for samplesheet checking and added support for `fna.gz` input FASTA files (by @louperelo, @mirpedrol, @jfy133)
12+
- [#295](https://github.com/nf-core/funcscan/pull/295) Add Prokka to MultiQC output (by @louperelo)
1113

1214
### `Fixed`
1315

14-
- [#296](https://github.com/nf-core/funcscan/pull/296) Added check for empty annotation files prior going into screening. (❤️ to @alexhbnr for requesting, added by @jfy133)
16+
- [#296](https://github.com/nf-core/funcscan/pull/296) Fixed empty output when saving prodigal annotations. (reported by @louperelo, fix by @jasmezz)
17+
- [#297](https://github.com/nf-core/funcscan/pull/297) Added check for empty annotation files prior going into screening. (❤️ to @alexhbnr for requesting, added by @jfy133)
1518

1619
### `Dependencies`
1720

assets/multiqc_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ export_plots: true
1515
custom_logo: "nf-core-funcscan_logo_flat_light.png"
1616
custom_logo_url: https://nf-co.re/funcscan
1717
custom_logo_title: "nf-core/funcscan"
18+
19+
## Tool specific configuration
20+
prokka_fn_snames: True

assets/schema_input.json

+10-18
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,19 @@
1010
"sample": {
1111
"type": "string",
1212
"pattern": "^\\S+$",
13-
"errorMessage": "Sample name must be provided and cannot contain spaces"
13+
"errorMessage": "Sample name must be provided and cannot contain spaces",
14+
"meta": ["id"],
15+
"unique": true
1416
},
15-
"fastq_1": {
17+
"fasta": {
1618
"type": "string",
17-
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
18-
"errorMessage": "FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
19-
},
20-
"fastq_2": {
21-
"errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'",
22-
"anyOf": [
23-
{
24-
"type": "string",
25-
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
26-
},
27-
{
28-
"type": "string",
29-
"maxLength": 0
30-
}
31-
]
19+
"format": "file-path",
20+
"exists": true,
21+
"pattern": "^\\S+\\.f(ast|n)?a\\.gz$",
22+
"errorMessage": "Fasta file for reads must be provided, cannot contain spaces and must have extension '.fa.gz', '.fna.gz' or '.fasta.gz'",
23+
"unique": true
3224
}
3325
},
34-
"required": ["sample", "fastq_1"]
26+
"required": ["sample", "fasta"]
3527
}
3628
}

bin/check_samplesheet.py

-215
This file was deleted.

conf/modules.config

+1-9
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ process {
1818
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
1919
]
2020

21-
withName: SAMPLESHEET_CHECK {
22-
publishDir = [
23-
path: { "${params.outdir}/pipeline_info" },
24-
mode: params.publish_dir_mode,
25-
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
26-
]
27-
}
28-
2921
withName: CUSTOM_DUMPSOFTWAREVERSIONS {
3022
publishDir = [
3123
path: { "${params.outdir}/pipeline_info" },
@@ -57,7 +49,7 @@ process {
5749
enabled: false,
5850
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
5951
]
60-
ext.prefix = { "${meta.it}.fa" }
52+
ext.prefix = { "${meta.id}.fa" }
6153
}
6254

6355
withName: PROKKA {

conf/test_nothing.config

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Nextflow config file for running minimal tests
4+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5+
Defines input files and everything required to run a fast and simple pipeline test.
6+
7+
Although in this case we turn everything off
8+
9+
Use as follows:
10+
nextflow run nf-core/funcscan -profile test,<docker/singularity> --outdir <OUTDIR>
11+
12+
----------------------------------------------------------------------------------------
13+
*/
14+
15+
params {
16+
config_profile_name = 'Test nothing profile'
17+
config_profile_description = 'Minimal test dataset to check pipeline function'
18+
19+
// Limit resources so that this can run on GitHub Actions
20+
max_cpus = 2
21+
max_memory = '6.GB'
22+
max_time = '6.h'
23+
24+
// Input data
25+
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/funcscan/samplesheet.csv'
26+
amp_hmmsearch_models = 'https://raw.githubusercontent.com/nf-core/test-datasets/funcscan/hmms/mybacteriocin.hmm'
27+
28+
annotation_tool = 'prodigal'
29+
30+
run_arg_screening = false
31+
run_amp_screening = false
32+
run_bgc_screening = false
33+
}

lib/WorkflowMain.groovy

100755100644
-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class WorkflowMain {
1919
" https://github.com/${workflow.manifest.name}/blob/master/CITATIONS.md"
2020
}
2121

22-
2322
//
2423
// Validate parameters and print summary to screen
2524
//

modules/local/samplesheet_check.nf

-31
This file was deleted.

nextflow.config

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ params {
1616
genome = null
1717
igenomes_base = 's3://ngi-igenomes/igenomes'
1818
igenomes_ignore = false
19-
19+
2020

2121
// Annotation options
2222
annotation_tool = 'pyrodigal'
@@ -329,6 +329,7 @@ profiles {
329329
test_bgc { includeConfig 'conf/test_bgc.config' }
330330
test_full { includeConfig 'conf/test_full.config' }
331331
test_deeparg { includeConfig 'conf/test_deeparg.config' }
332+
test_nothing { includeConfig 'conf/test_nothing.config' }
332333
}
333334

334335
// Set default registry for Apptainer, Docker, Podman and Singularity independent of -profile

nextflow_schema.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"exists": true,
1919
"mimetype": "text/csv",
2020
"pattern": "^\\S+\\.csv$",
21+
"schema": "assets/schema_input.json",
2122
"description": "Path to comma-separated file containing information sample names and paths to corresponding FASTA files.",
2223
"help_text": "Before running the pipeline, you will need to create a design file with information about the samples to be scanned by nf-core/funcscan, containing `sample name` and `path/to/your/contigs.fasta`. Use this parameter to specify its location. It has to be a comma-separated file with 2 columns, and a header row (`sample, fasta`). See [usage docs](https://nf-co.re/funcscan/usage#samplesheet-input).",
2324
"fa_icon": "fas fa-file-csv"

0 commit comments

Comments
 (0)