Adressing general comments on PR #134

This commit is contained in:
JoseEspinosa 2021-02-08 15:11:36 +01:00
parent 5071bf5914
commit fe412797dd
4 changed files with 17 additions and 12 deletions

View file

@ -18,7 +18,7 @@ process BCFTOOLS_ISEC {
}
input:
tuple val(meta), path('vcfs/*')
tuple val(meta), path(vcfs), path(tbis)
output:
tuple val(meta), path("${prefix}"), emit: results
@ -31,7 +31,7 @@ process BCFTOOLS_ISEC {
bcftools isec \\
$options.args \\
-p $prefix \\
*/*.vcf.gz
*.vcf.gz
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
"""
}

View file

@ -40,21 +40,26 @@ input:
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- vcf:
- vcfs:
type: files
description: |
List containing 2 or more vcf files and their respective index (tbi files)
e.g. [ 'file1.vcf', 'file1.vcf.tbi', 'file2.vcf', 'file2.vcf.tbi' ]
List containing 2 or more vcf files
e.g. [ 'file1.vcf', 'file2.vcf' ]
- tbis:
type: files
description: |
List containing the tbi index files corresponding to the vcfs input files
e.g. [ 'file1.vcf.tbi', 'file2.vcf.tbi' ]
output:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- vcf:
type: file
description: VCF filtered output file
pattern: "*.{vcf}"
- results:
type: directory
description: Folder containing the set operations results perform on the vcf files
pattern: "${prefix}"
- version:
type: file
description: File containing software version

View file

@ -49,7 +49,7 @@ output:
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- txt:
- stats:
type: file
description: Text output file containing stats
pattern: "*.{txt}"

View file

@ -18,7 +18,7 @@ process BCFTOOLS_TABIX {
}
input:
tuple val(meta), path(gz_genome_position_file)
tuple val(meta), path(vcf)
output:
tuple val(meta), path("*.tbi"), emit: tbi
@ -27,7 +27,7 @@ process BCFTOOLS_TABIX {
script:
def software = getSoftwareName(task.process)
"""
tabix $options.args $gz_genome_position_file
tabix $options.args $vcf
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
"""
}