Skip to content

Commit f2e3575

Browse files
committed
Remove binary panel
1 parent d092479 commit f2e3575

File tree

12 files changed

+2
-288
lines changed

12 files changed

+2
-288
lines changed

conf/steps/panel_prep.config

-10
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,4 @@ process {
206206
]
207207
}
208208

209-
withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_CHUNK_GLIMPSE:GLIMPSE2_SPLITREFERENCE' {
210-
ext.prefix = { "${meta.id}_${meta.chr}_chunks_glimpse2" }
211-
publishDir = [
212-
path: { "${params.outdir}/prep_panel/chunks/glimpse2/" },
213-
mode: params.publish_dir_mode,
214-
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
215-
enabled: true
216-
]
217-
}
218-
219209
}

modules.json

-5
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@
113113
"installed_by": ["modules"],
114114
"patch": "modules/nf-core/glimpse2/phase/glimpse2-phase.diff"
115115
},
116-
"glimpse2/splitreference": {
117-
"branch": "master",
118-
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",
119-
"installed_by": ["modules"]
120-
},
121116
"gunzip": {
122117
"branch": "master",
123118
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",

modules/nf-core/glimpse2/splitreference/environment.yml

-5
This file was deleted.

modules/nf-core/glimpse2/splitreference/main.nf

-64
This file was deleted.

modules/nf-core/glimpse2/splitreference/meta.yml

-71
This file was deleted.

modules/nf-core/glimpse2/splitreference/tests/main.nf.test

-70
This file was deleted.

modules/nf-core/glimpse2/splitreference/tests/main.nf.test.snap

-26
This file was deleted.

modules/nf-core/glimpse2/splitreference/tests/nextflow.config

-9
This file was deleted.

modules/nf-core/glimpse2/splitreference/tests/tags.yml

-2
This file was deleted.

nextflow.config

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ params {
6969
posfile = null
7070

7171
// GLIMPSE2
72-
binaryref = null
7372
chunks = null
7473

7574
// Boilerplate options

nextflow_schema.json

-4
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@
128128
"description": "Should the allele frequency for each variant (AC/AN fields necessary for Glimpse1 and the validation step) be computed using VCFFIXUP tool. This can be necessary if the fields are absent from the panel or if samples have been removed.",
129129
"type": "boolean"
130130
},
131-
"binaryref": {
132-
"type": "string",
133-
"description": "Whether to generate a binary reference file to be used with GLIMPSE2"
134-
},
135131
"chunk_model": {
136132
"type": "string",
137133
"description": "Model type to use for GLIMPSE2_CHUNK",

subworkflows/local/vcf_chunk_glimpse/main.nf

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
include { GLIMPSE_CHUNK } from '../../../modules/nf-core/glimpse/chunk'
22
include { GLIMPSE2_CHUNK } from '../../../modules/nf-core/glimpse2/chunk'
3-
include { GLIMPSE2_SPLITREFERENCE } from '../../../modules/nf-core/glimpse2/splitreference'
43

54
workflow VCF_CHUNK_GLIMPSE {
65

@@ -29,7 +28,7 @@ workflow VCF_CHUNK_GLIMPSE {
2928
[metaPC, metaPC.chr, startEnd[0], startEnd[1]]
3029
}
3130

32-
// Rearrange chunks into channel for GLIMPSE1
31+
// Rearrange chunks into channel for GLIMPSE1 and GLIMPSE2
3332
ch_chunks_glimpse1 = GLIMPSE_CHUNK.out.chunk_chr
3433
.splitCsv(
3534
header: ['ID', 'Chr', 'RegionIn', 'RegionOut', 'Size1', 'Size2'],
@@ -58,28 +57,10 @@ workflow VCF_CHUNK_GLIMPSE {
5857
)
5958
.map { metaPC, it -> [metaPC, it["RegionBuf"], it["RegionCnk"]]}
6059

61-
// Split reference panel in bin files
62-
// Segmentation fault occurs in small-sized panels
63-
// Should be run only in full-sized panels
64-
65-
ch_bins = [[]]
66-
67-
if (params.binaryref == true) {
68-
// Create channel to split reference
69-
split_input = ch_reference.join(ch_chunks_glimpse2)
70-
71-
// Create a binary reference panel for quick reading time
72-
GLIMPSE2_SPLITREFERENCE( split_input, ch_map )
73-
ch_versions = ch_versions.mix( GLIMPSE2_SPLITREFERENCE.out.versions.first() )
74-
75-
ch_bins = GLIMPSE2_SPLITREFERENCE.out.bin_ref
76-
}
77-
7860
emit:
7961
chunks = GLIMPSE_CHUNK.out.chunk_chr // channel: [ [panel, chr], txt ]
8062
chunks_quilt = ch_chunks_quilt // channel: [ [panel, chr], chr, start, end ]
8163
chunks_glimpse1 = ch_chunks_glimpse1 // channel: [ [panel, chr], chr, region1, region2 ]
82-
chunks_glimpse2 = ch_chunks_glimpse2 // channel: [ [panel, chr], chr, region1, region2 ]
83-
binary = ch_bins // channel: [ [panel, chr], bin]
64+
chunks_glimpse2 = ch_chunks_glimpse2 // channel: [ [panel, chr], chr, region1, region2 ] // channel: [ [panel, chr], bin]
8465
versions = ch_versions // channel: [ versions.yml ]
8566
}

0 commit comments

Comments
 (0)