Skip to content

Commit 6ac08ad

Browse files
authored
Merge pull request #179 from atrigila/dev
Fix: use VCF as input in glimpse2
2 parents f007400 + 3b65ca7 commit 6ac08ad

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
### `Fixed`
1919

2020
- [#166](https://github.com/nf-core/phaseimpute/pull/166) - Fix depth type to `number` to enable float.
21+
- [#179](https://github.com/nf-core/phaseimpute/pull/179) - Fix VCF usage in `GLIMPSE2`.
2122

2223
## v1.0.0 - Black Labrador [2024-12-09]
2324

conf/test_vcf.config

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
Use as follows:
8+
nextflow run nf-core/phaseimpute -profile test_glimpse2,<docker/singularity> --outdir <OUTDIR>
9+
10+
----------------------------------------------------------------------------------------
11+
*/
12+
13+
process {
14+
resourceLimits = [
15+
cpus: 4,
16+
memory: '4.GB',
17+
time: '1.h'
18+
]
19+
}
20+
21+
params {
22+
config_profile_name = 'Test profile'
23+
config_profile_description = 'Minimal test dataset to check pipeline function with GLIMPSE2'
24+
25+
// Input data
26+
input = "${projectDir}/tests/csv/sample_vcf.csv"
27+
28+
// Genome references
29+
fasta = params.pipelines_testdata_base_path + "hum_data/reference_genome/GRCh38.s.fa.gz"
30+
panel = "${projectDir}/tests/csv/panel.csv"
31+
32+
// Pipeline steps
33+
steps = "impute"
34+
35+
// External params
36+
chunks = "${projectDir}/tests/csv/chunks.csv"
37+
38+
// Impute tools
39+
tools = "glimpse2"
40+
}

nextflow.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ profiles {
244244
test_panelprep { includeConfig 'conf/test_panelprep.config' }
245245
test_dog { includeConfig 'conf/test_dog.config' }
246246
test_batch { includeConfig 'conf/test_batch.config' }
247+
test_vcf { includeConfig 'conf/test_vcf.config' }
247248
}
248249

249250
// Load nf-core custom profiles from different Institutions

workflows/phaseimpute/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ workflow PHASEIMPUTE {
339339
BAM_IMPUTE_GLIMPSE2(
340340
ch_input_bams_withlist
341341
.map{ [it[0], it[1], it[2], it[3]] }
342-
.mix(ch_input_type.vcf.combine([])),
342+
.mix(ch_input_type.vcf.combine(Channel.of([[]]))),
343343
ch_panel_phased,
344344
ch_chunks_glimpse2,
345345
ch_fasta

0 commit comments

Comments
 (0)