Mercurial > repos > iuc > bcftools_annotate
comparison bcftools_annotate.xml @ 10:365022dae1c9 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 942ca2971ae6a72e548fde6186c6408a1e236653
| author | iuc |
|---|---|
| date | Mon, 29 Jul 2019 17:52:55 -0400 |
| parents | 9f281310c048 |
| children | d269b0d96501 |
comparison
equal
deleted
inserted
replaced
| 9:9f281310c048 | 10:365022dae1c9 |
|---|---|
| 1 <?xml version='1.0' encoding='utf-8'?> | 1 <?xml version='1.0' encoding='utf-8'?> |
| 2 <tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@TOOL_VERSION@+galaxy1"> | 2 <tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@TOOL_VERSION@+galaxy2"> |
| 3 <description>Annotate and edit VCF/BCF files</description> | 3 <description>Annotate and edit VCF/BCF files</description> |
| 4 <macros> | 4 <macros> |
| 5 <token name="@EXECUTABLE@">annotate</token> | 5 <token name="@EXECUTABLE@">annotate</token> |
| 6 <import>macros.xml</import> | 6 <import>macros.xml</import> |
| 7 </macros> | 7 </macros> |
| 12 @PREPARE_INPUT_FILE@ | 12 @PREPARE_INPUT_FILE@ |
| 13 #set $annotation_file = None | 13 #set $annotation_file = None |
| 14 #set $annotation_hdr = None | 14 #set $annotation_hdr = None |
| 15 #set $section = $sec_annofile | 15 #set $section = $sec_annofile |
| 16 #if $section.annofile.anno_fmt == 'vcf': | 16 #if $section.annofile.anno_fmt == 'vcf': |
| 17 #set $annotation_file = 'annotations.vcf.gz' | 17 #if $section.annofile.annotations.is_of_type('vcf') |
| 18 bgzip -c "$section.annofile.annotations" > $annotation_file && | 18 #set $annotation_file = 'annotations.vcf.gz' |
| 19 bcftools index $annotation_file && | 19 bgzip -c "$section.annofile.annotations" > $annotation_file && |
| 20 bcftools index $annotation_file && | |
| 21 #elif $section.annofile.annotations.is_of_type('bcf') | |
| 22 #set $annotation_file = 'annotations.bcf' | |
| 23 ln -s '$section.annofile.annotations' $annotation_file && | |
| 24 #if $section.annofile.annotations.metadata.bcf_index: | |
| 25 ln -s '${section.annofile.annotations.metadata.bcf_index}' ${annotation_file}.csi && | |
| 26 #else | |
| 27 bcftools index $annotation_file && | |
| 28 #end if | |
| 29 #end if | |
| 20 #elif $section.annofile.anno_fmt == 'tab': | 30 #elif $section.annofile.anno_fmt == 'tab': |
| 21 #if $section.annofile.annotations.is_of_type('bed') | 31 #if $section.annofile.annotations.is_of_type('bed') |
| 22 #set $annotation_file = 'annotations.bed.gz' | 32 #set $annotation_file = 'annotations.bed.gz' |
| 23 bgzip -c "$section.annofile.annotations" > $annotation_file && | 33 bgzip -c "$section.annofile.annotations" > $annotation_file && |
| 24 tabix -s 1 -b 2 -e 3 $annotation_file && | 34 tabix -s 1 -b 2 -e 3 $annotation_file && |
| 95 <option value="vcf">From a VCF/BCF file</option> | 105 <option value="vcf">From a VCF/BCF file</option> |
| 96 <option value="tab">From a BED or tab-delimited file</option> | 106 <option value="tab">From a BED or tab-delimited file</option> |
| 97 </param> | 107 </param> |
| 98 <when value="none"/> | 108 <when value="none"/> |
| 99 <when value="vcf"> | 109 <when value="vcf"> |
| 100 <param name="annotations" type="data" format="vcf" label="Annotations VCF"/> | 110 <param name="annotations" type="data" format="vcf,bcf" label="Annotations VCF"/> |
| 101 </when> | 111 </when> |
| 102 <when value="tab"> | 112 <when value="tab"> |
| 103 <param name="annotations" type="data" format="tabular,bed" label="Annotations"> | 113 <param name="annotations" type="data" format="tabular,bed" label="Annotations"> |
| 104 <help><