mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
add htslib tabix to index bgzipped vcf files
This commit is contained in:
parent
9db873c3bc
commit
b8dda67338
4 changed files with 57 additions and 0 deletions
16
tools/htslib/tabix/main.nf
Normal file
16
tools/htslib/tabix/main.nf
Normal file
|
@ -0,0 +1,16 @@
|
|||
process htslib_tabix {
|
||||
tag {vcf}
|
||||
|
||||
container 'quay.io/biocontainers/tabix:0.2.6--ha92aebf_0'
|
||||
|
||||
input:
|
||||
path(vcf)
|
||||
|
||||
output:
|
||||
path("${vcf}.tbi")
|
||||
|
||||
script:
|
||||
"""
|
||||
tabix -p vcf ${vcf}
|
||||
"""
|
||||
}
|
26
tools/htslib/tabix/meta.yml
Normal file
26
tools/htslib/tabix/meta.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: htslib tabix
|
||||
description: create tabix index from a bgzip vcf file
|
||||
keywords:
|
||||
- index
|
||||
- tabix
|
||||
tools:
|
||||
- bwa:
|
||||
description: |
|
||||
Generic indexer for TAB-delimited genome position files.
|
||||
homepage: https://www.htslib.org/
|
||||
documentation: https://www.htslib.org/doc/tabix.1.html
|
||||
doi: 10.1093/bioinformatics/btq671
|
||||
input:
|
||||
-
|
||||
- input:
|
||||
type: file
|
||||
description: Input vcf.gz file
|
||||
pattern: *.{vcf.gz}
|
||||
output:
|
||||
-
|
||||
- index:
|
||||
type: file
|
||||
description: tabix index file
|
||||
pattern: *.{vcf.gz.tbi}
|
||||
authors:
|
||||
- @maxulysse
|
13
tools/htslib/tabix/test/main.nf
Normal file
13
tools/htslib/tabix/test/main.nf
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env nextflow
|
||||
nextflow.preview.dsl = 2
|
||||
include '../../../nf-core/module_testing/check_process_outputs.nf' params(params)
|
||||
include '../main.nf' params(params)
|
||||
|
||||
// Define input channels
|
||||
input = '../../../test-datasets/tools/file.vcf.gz'
|
||||
|
||||
// Run the workflow
|
||||
workflow {
|
||||
tabix_index(ch_read_files)
|
||||
// .check_output()
|
||||
}
|
2
tools/htslib/tabix/test/nextflow.config
Normal file
2
tools/htslib/tabix/test/nextflow.config
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker.enabled = true
|
||||
params.outdir = './results'
|
Loading…
Reference in a new issue