added an optional vcf index to bcftools/norm (#1821)

* added an optional vcf index to bcftools/norm

* updated test.yml for failing conda tests
This commit is contained in:
nvnieuwk 2022-06-28 16:18:12 +02:00 committed by GitHub
parent 98ffb09002
commit d596571a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 7 deletions

View file

@ -8,7 +8,7 @@ process BCFTOOLS_NORM {
'quay.io/biocontainers/bcftools:1.14--h88f3f91_0' }" 'quay.io/biocontainers/bcftools:1.14--h88f3f91_0' }"
input: input:
tuple val(meta), path(vcf) tuple val(meta), path(vcf), path(tbi)
path(fasta) path(fasta)
output: output:

View file

@ -24,6 +24,12 @@ input:
description: | description: |
The vcf file to be normalized The vcf file to be normalized
e.g. 'file1.vcf' e.g. 'file1.vcf'
pattern: "*.{vcf,vcf.gz}"
- tbi:
type: file
description: |
An optional index of the VCF file (for when the VCF is compressed)
pattern: "*.vcf.gz.tbi"
- fasta: - fasta:
type: file type: file
description: FASTA reference file description: FASTA reference file
@ -37,7 +43,7 @@ output:
- vcf: - vcf:
type: file type: file
description: VCF normalized output file description: VCF normalized output file
pattern: "*.{vcf.gz}" pattern: "*.vcf.gz"
- versions: - versions:
type: file type: file
description: File containing software versions description: File containing software versions

View file

@ -4,10 +4,24 @@ nextflow.enable.dsl = 2
include { BCFTOOLS_NORM } from '../../../../modules/bcftools/norm/main.nf' include { BCFTOOLS_NORM } from '../../../../modules/bcftools/norm/main.nf'
workflow test_bcftools_norm { workflow test_bcftools_norm_no_tbi {
input = [ [ id:'test2', single_end:false ], // meta map input = [ [ id:'test2', single_end:false ], // meta map
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true)] file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
[]
]
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
BCFTOOLS_NORM ( input, fasta )
}
workflow test_bcftools_norm_tbi {
input = [ [ id:'test2', single_end:false ], // meta map
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true)
]
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)

View file

@ -1,8 +1,15 @@
- name: bcftools norm - name: bcftools norm test_bcftools_norm_no_tbi
command: nextflow run ./tests/modules/bcftools/norm -entry test_bcftools_norm -c ./tests/config/nextflow.config -c ./tests/modules/bcftools/norm/nextflow.config command: nextflow run ./tests/modules/bcftools/norm -entry test_bcftools_norm_no_tbi -c ./tests/config/nextflow.config -c ./tests/modules/bcftools/norm/nextflow.config
tags:
- bcftools
- bcftools/norm
files:
- path: output/bcftools/test2.vcf.gz
- name: bcftools norm test_bcftools_norm_tbi
command: nextflow run ./tests/modules/bcftools/norm -entry test_bcftools_norm_tbi -c ./tests/config/nextflow.config -c ./tests/modules/bcftools/norm/nextflow.config
tags: tags:
- bcftools - bcftools
- bcftools/norm - bcftools/norm
files: files:
- path: output/bcftools/test2.vcf.gz - path: output/bcftools/test2.vcf.gz
md5sum: 2b1cac07d1875b8adcd7a85346890f07