-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nf-schema, remove unnecessary parameters. (#4)
- Loading branch information
1 parent
e5d715c
commit 66b9bfc
Showing
9 changed files
with
154 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"barcode": { "type": "string" }, | ||
"sample": { "type": "string" } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
params { | ||
experiment_name = '' | ||
data_dir = null | ||
sample_data = 'input/samples.csv' | ||
output_dir = 'demultiplex_results/' | ||
sample_data = null | ||
output_dir = 'results/' | ||
fastq_output = true | ||
qscore_filter = 10 | ||
dorado_basecalling_model = 'sup' | ||
dorado_basecalling_extra_config = '' | ||
dorado_basecalling_gpus = 1 | ||
skip_demultiplexing = false | ||
dorado_demux_kit = 'SQK-NBD114-96' | ||
dorado_demux_both_ends = false | ||
dorado_demux_extra_config = '' | ||
use_dorado_container = true | ||
qc_tools = ['fastqc', 'nanoq', 'toulligqc'] | ||
showHidden = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
plugins { | ||
id '[email protected]' | ||
} | ||
|
||
validation { | ||
help { | ||
enabled = true | ||
showHidden = false | ||
} | ||
ignoreParams = ['showHidden', 'show-hidden'] | ||
} | ||
|
||
resume = true | ||
|
||
process { | ||
errorStrategy = 'finish' | ||
} | ||
|
||
report { | ||
enabled = true | ||
file = "${params.output_dir}/reports/nextflow_report.html" | ||
overwrite = true | ||
} | ||
|
||
includeConfig 'conf/params.config' | ||
includeConfig 'conf/profiles.config' | ||
includeConfig 'conf/containers.config' | ||
|
||
|
||
def trace_timestamp = new java.util.Date().format('yyyy-MM-dd_HH-mm-ss') | ||
report { | ||
enabled = true | ||
file = "${params.output_dir}/reports/execution_report_${trace_timestamp}.html" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://raw.githubusercontent.com//master/nextflow_schema.json", | ||
"title": " pipeline parameters", | ||
"description": "", | ||
"type": "object", | ||
"properties": { | ||
"experiment_name": { | ||
"type": "string", | ||
"description": "Name of the experiment, used for final reports (title and filename)." | ||
}, | ||
"data_dir": { | ||
"type": "string", | ||
"description": "Path to the directory containing POD5 files.", | ||
"format": "directory-path" | ||
}, | ||
"sample_data": { | ||
"type": "string", | ||
"default": "input/samples.csv", | ||
"format": "file-path", | ||
"schema": "/assets/samples_data_schema.json", | ||
"mimetype": "text/csv", | ||
"description": "Path to the CSV file containing the sample data (if not provided, will not perform demux)." | ||
}, | ||
"output_dir": { | ||
"type": "string", | ||
"default": "results/", | ||
"description": "Directory for saving results." | ||
}, | ||
"fastq_output": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Generates FASTQ files if `true`; otherwise, generates UBAM files." | ||
}, | ||
"qscore_filter": { | ||
"type": "integer", | ||
"default": 10, | ||
"description": "Minimum QScore threshold for \"pass\" data, used in demultiplexing." | ||
}, | ||
"dorado_basecalling_model": { | ||
"type": "string", | ||
"default": "sup", | ||
"description": "Model used for basecalling. Check Dorado help for available options." | ||
}, | ||
"dorado_basecalling_gpus": { | ||
"type": "integer", | ||
"default": 1, | ||
"description": "Number of GPUs to allocate for basecalling." | ||
}, | ||
"dorado_demux_kit": { | ||
"type": "string", | ||
"default": "SQK-NBD114-96", | ||
"description": "Kit identifier used for demultiplexing." | ||
}, | ||
"dorado_demux_both_ends": { | ||
"type": "boolean", | ||
"description": "Demultiplexes using barcodes on both ends (5' and 3') if `true`." | ||
}, | ||
"use_dorado_container": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Uses Dorado via container if `true`; expects a local installation if `false`." | ||
}, | ||
"qc_tools": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": ["nanoq", "nanoplot", "fastqc", "toulligqc", "pycoqc"] | ||
}, | ||
"description": "Specifies which QC tools to run." | ||
} | ||
}, | ||
"required": ["data_dir"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters