Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds test data base path to classic test configs for more easily switching between test data location #2931

Merged
merged 8 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Update python to 3.12 ([#2805](https://github.com/nf-core/tools/pull/2805))
- Remove `pyproject.toml` from template root
- Shorten lines in pipeline template ([#2908](https://github.com/nf-core/tools/pull/2908))
- Add a new hidden `--test_data_base_path` parameter to more easily switch locations of test data in test configs (#2900)[]
jfy133 marked this conversation as resolved.
Show resolved Hide resolved

### Linting

Expand Down
2 changes: 1 addition & 1 deletion nf_core/pipeline-template/conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ params {
// Input data
// TODO nf-core: Specify the paths to your test data on nf-core/test-datasets
// TODO nf-core: Give any required params for the test so that command line flags are not needed
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv'
input = test_data_base_path + 'viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv'
jfy133 marked this conversation as resolved.
Show resolved Hide resolved

{% if igenomes -%}
// Genome references
Expand Down
4 changes: 2 additions & 2 deletions nf_core/pipeline-template/conf/test_full.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ params {
// Input data for full size test
// TODO nf-core: Specify the paths to your full test data ( on nf-core/test-datasets or directly in repositories, e.g. SRA)
// TODO nf-core: Give any required params for the test so that command line flags are not needed
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/samplesheet/samplesheet_full_illumina_amplicon.csv'
input = test_data_base_path + 'viralrecon/samplesheet/samplesheet_full_illumina_amplicon.csv'
jfy133 marked this conversation as resolved.
Show resolved Hide resolved

{% if igenomes -%}
// Genome references
genome = 'R64-1-1'
{%- else -%}
// Fasta references
fasta = 'https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/genome/NC_045512.2/GCF_009858895.2_ASM985889v3_genomic.200409.fna.gz'
fasta = test_data_base_path + 'viralrecon/genome/NC_045512.2/GCF_009858895.2_ASM985889v3_genomic.200409.fna.gz'
jfy133 marked this conversation as resolved.
Show resolved Hide resolved
{%- endif %}
}
1 change: 1 addition & 0 deletions nf_core/pipeline-template/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ params {
hook_url = null
help = false
version = false
test_data_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/'
jfy133 marked this conversation as resolved.
Show resolved Hide resolved

// Config options
config_profile_name = null
Expand Down
6 changes: 6 additions & 0 deletions nf_core/pipeline-template/nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@
"description": "Validation of parameters in lenient more.",
"hidden": true,
"help_text": "Allows string values that are parseable as numbers or booleans. For further information see [JSONSchema docs](https://github.com/everit-org/json-schema#lenient-mode)."
},
"test_data_base_path": {
jfy133 marked this conversation as resolved.
Show resolved Hide resolved
"type": "string",
"fa_icon": "far fa-check-circle",
"description": "Base URL or local path to location of pipeline test dataset files",
"hidden": true,
}
}
}
Expand Down
Loading