15
|
1 <tool id="bcftools_reheader" name="BCFtools reheader" version="1.0.0">
|
|
2 <description>Modify header of VCF/BCF files, change sample names</description>
|
27
|
3 <requirements>
|
|
4 <requirement type="package" version="1.3">bcftools</requirement>
|
|
5 </requirements>
|
15
|
6 <command>
|
|
7 #if str( $input_file_index ) != "None":
|
|
8 ln -s -f $input input_file.${input.ext} &&
|
|
9 ln -s -f $input_file_index input_file.${input.ext}.tbi &&
|
|
10 #end if
|
|
11
|
|
12 bcftools reheader
|
|
13 --output "${output_file}"
|
|
14 #if str( $header ) != "None":
|
|
15 --header "${header}"
|
|
16 #end if
|
|
17 #if str( $samples ) != "None":
|
|
18 --samples "${samples}"
|
|
19 #end if
|
|
20 #if str( $input_file_index ) != "None":
|
|
21 input_file.${input.ext}
|
|
22 #else
|
|
23 $input
|
|
24 #end if
|
|
25 </command>
|
|
26 <inputs>
|
|
27 <param name="input" type="data" format="vcf,bcf,bgzip" label="VCF or BCF input file" help="Input file can optionally be compressed and indexed using Bgzip and Tabix Galaxy tools. In this case, select bgzipped file here and index below."/>
|
|
28 <param name="input_file_index" type="data" optional="true" label="Input file index" help="Tabix-generated index for input file. Run Tabix Galaxy tool on bgzipped input file to create index."/>
|
|
29 <param name="header" type="data" optional="True" label="New VCF header" help="-h"/>
|
|
30 <param name="samples" type="data" optional="True" label="New sample names" help="-s. Either new sample names, each on a separate line, in the same order as samples appear in the VCF file, or "old_name new_name\n" pairs separated by whitespaces, each on a separate line." />
|
|
31 </inputs>
|
|
32 <outputs>
|
|
33 <data name="output_file" format_source="input" label="${tool.name} on ${on_string}" />
|
|
34 </outputs>
|
|
35 <help>
|
|
36 **About this tool**
|
|
37
|
|
38 **BCFtools reheader**: Modify header of VCF/BCF files, change sample names.
|
|
39
|
|
40 Please see https://samtools.github.io/bcftools/bcftools.html for more info on options.
|
|
41 </help>
|
|
42 </tool>
|