Skip to content

Commit

Permalink
fixed bugs caused by merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Foster committed Oct 30, 2024
1 parent e639e7d commit 40f27a5
Show file tree
Hide file tree
Showing 30 changed files with 291 additions and 402 deletions.
2 changes: 1 addition & 1 deletion .nf-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ template:
description: Surveillance of plant pathogens using high-throughput sequencing
force: false
is_nfcore: true
name: plantpathsurveil
name: pathogensurveillance
org: nf-core
outdir: .
skip_features: null
Expand Down
56 changes: 44 additions & 12 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,65 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/nf-core/plantpathsurveil/master/assets/schema_input.json",
"title": "nf-core/plantpathsurveil pipeline - params.input schema",
"description": "Schema for the file provided with params.input",
"$id": "https://raw.githubusercontent.com/nf-core/pathogensurveillance/master/assets/schema_input.json",
"title": "nf-core/pathogensurveillance pipeline - params.sample_data schema",
"description": "Schema for the file provided with params.sample_data",
"type": "array",
"items": {
"type": "object",
"properties": {
"sample": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Sample name must be provided and cannot contain spaces",
"meta": ["id"]
"sample_id": {
"type": "string"
},
"name": {
"type": "string"
},
"fastq_1": {
"description": {
"type": "string"
},
"path": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
"errorMessage": "FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
},
"fastq_2": {
"path_2": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
"errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
}
},
"ncbi_accession": {
"type": "string",
"pattern": "^[A-Z]{3}[0-9]+$",
"errorMessage": "The `ncbi_accession` column contains at least on value that does not look like an NCBI accession (3 captial letters followed by numbers)."
},
"ncbi_query": {
"type": "string"
},
"ncbi_query_max": {
"type": "string"
},
"sequence_type": {
"type": "string"
},
"report_group_ids": {
"type": "string"
},
"color_by": {
"type": "string"
},
"ploidy": {
"type": "number"
},
"enabled": {
"type": "boolean"
},
"ref_group_ids": {
"type": "string"
},
},
"required": ["sample", "fastq_1"]
"required": []
}
}
2 changes: 1 addition & 1 deletion conf/aps_workshop.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ params {

// Input data
sample_data = 'test/data/metadata/aps_workshop.csv'
out_dir = 'aps_workshop_output'
outdir = 'aps_workshop_output'
download_bakta_db = true
cache_type = 'lenient'
}
6 changes: 3 additions & 3 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@ process {

report {
enabled = true
file = "${params.out_dir}/pipeline_info/execution_report.html"
file = "${params.outdir}/pipeline_info/execution_report.html"
overwrite = true
}

timeline {
enabled = true
file = "${params.out_dir}/pipeline_info/timeline_report.html"
file = "${params.outdir}/pipeline_info/timeline_report.html"
overwrite = true
}

trace {
enabled = true
file = "${params.out_dir}/pipeline_info/trace_report.tsv"
file = "${params.outdir}/pipeline_info/trace_report.tsv"
overwrite = true
fields = "task_id,hash,native_id,process,tag,status,exit,module,container,cpus,time,disk,memory,attempt,submit,start,complete,duration,realtime,queue,%cpu,%mem,rss,vmem,peak_rss,peak_vmem,rchar,wchar,syscr,syscw,read_bytes,write_bytes,vol_ctxt,inv_ctxt,workdir,scratch,error_action"
}
Expand Down
4 changes: 2 additions & 2 deletions conf/chaos.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a full size pipeline test.
Use as follows:
nextflow run nf-core/pathogensurveillance -profile xanthomonas,<docker/singularity> --out_dir <OUTDIR>
nextflow run nf-core/pathogensurveillance -profile xanthomonas,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -17,7 +17,7 @@ params {
// Input data
sample_data = 'test/data/metadata/chaos_samples.csv'
reference_data = 'test/data/metadata/chaos_references.csv'
out_dir = 'test/output/chaos'
outdir = 'test/output/chaos'
download_bakta_db = true
}

4 changes: 2 additions & 2 deletions conf/complex.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a full size pipeline test.
Use as follows:
nextflow run nf-core/pathogensurveillance -profile xanthomonas,<docker/singularity> --out_dir <OUTDIR>
nextflow run nf-core/pathogensurveillance -profile xanthomonas,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -16,7 +16,7 @@ params {

// Input data
sample_data = 'test/data/metadata/complex.csv'
out_dir = 'test/output/complex'
outdir = 'test/output/complex'
download_bakta_db = true
}

4 changes: 2 additions & 2 deletions conf/complex_minimal.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a full size pipeline test.
Use as follows:
nextflow run nf-core/pathogensurveillance -profile xanthomonas,<docker/singularity> --out_dir <OUTDIR>
nextflow run nf-core/pathogensurveillance -profile xanthomonas,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -16,7 +16,7 @@ params {

// Input data
sample_data = 'test/data/metadata/complex_minimal.csv'
out_dir = 'test/output/complex_minimal'
outdir = 'test/output/complex_minimal'
download_bakta_db = true
}

4 changes: 2 additions & 2 deletions conf/complex_small.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a full size pipeline test.
Use as follows:
nextflow run nf-core/pathogensurveillance -profile xanthomonas,<docker/singularity> --out_dir <OUTDIR>
nextflow run nf-core/pathogensurveillance -profile xanthomonas,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -16,7 +16,7 @@ params {

// Input data
sample_data = 'test/data/metadata/complex_small.csv'
out_dir = 'test/output/complex_small'
outdir = 'test/output/complex_small'
download_bakta_db = true
}

4 changes: 2 additions & 2 deletions conf/fungi_n81.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a fast and simple pipeline test.
Use as follows:
nextflow run nf-core/plantpathsurveil -profile fungi_n81,<docker/singularity> --out_dir <OUTDIR>
nextflow run nf-core/plantpathsurveil -profile fungi_n81,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -15,6 +15,6 @@ params {

// Input data
sample_data = 'test/data/metadata/boxwood.csv'
out_dir = 'test/output/fungi_n81'
outdir = 'test/output/fungi_n81'
download_bakta_db = false
}
4 changes: 2 additions & 2 deletions conf/high_complexity_kpneumoniae.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a fast and simple pipeline test.
Use as follows:
nextflow run nf-core/plantpathsurveil -profile high_complexity_kpneumoniae,<docker/singularity> --out_dir <OUTDIR>
nextflow run nf-core/plantpathsurveil -profile high_complexity_kpneumoniae,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -15,7 +15,7 @@ params {

// Input data
sample_data = 'test/data/metadata/high_complexity_kpneumoniae.csv'
out_dir = 'test/output/high_complexity_kpneumoniae'
outdir = 'test/output/high_complexity_kpneumoniae'
download_bakta_db = true
}

Expand Down
2 changes: 1 addition & 1 deletion conf/mixed.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ params {
// Input data
sample_data = 'test/data/metadata/mixed.csv'
reference_data = 'test/data/metadata/mixed_references.csv'
out_dir = 'test/output/mixed'
outdir = 'test/output/mixed'
download_bakta_db = true
}
4 changes: 2 additions & 2 deletions conf/mixed_bacteria.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a fast and simple pipeline test.
Use as follows:
nextflow run nf-core/plantpathsurveil -profile mixed_bacteria,<docker/singularity> --out_dir <OUTDIR>
nextflow run nf-core/plantpathsurveil -profile mixed_bacteria,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -15,6 +15,6 @@ params {

// Input data
sample_data = 'test/data/metadata/mixed_bacteria.csv'
out_dir = 'test/output/mixed_bacteria'
outdir = 'test/output/mixed_bacteria'
download_bakta_db = true
}
Loading

0 comments on commit 40f27a5

Please sign in to comment.