add htslib tabix to index bgzipped vcf files

This commit is contained in:
MaxUlysse 2020-01-23 11:35:49 +01:00
parent 9db873c3bc
commit b8dda67338
4 changed files with 57 additions and 0 deletions

View 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}
"""
}

View 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

View 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()
}

View file

@ -0,0 +1,2 @@
docker.enabled = true
params.outdir = './results'