|
0
|
1 <tool id="vcf2maf" name="vcf2maf" version="1.0.0">
|
|
|
2 <description>Converts VCF files into MAF format</description>
|
|
|
3
|
|
|
4 <command>
|
|
|
5 echo \$VCF2MAF_SCRIPT_PATH;
|
|
|
6 echo \$ENSEMBL_VEP_84_INSTALL_DIR;
|
|
|
7 ln -s $input_vcf ./input.vcf;
|
|
|
8 perl \$VCF2MAF_SCRIPT_PATH/vcf2maf.pl
|
|
|
9 --input-vcf ./input.vcf
|
|
|
10 --output-maf $output_maf
|
|
|
11
|
|
|
12 #if $sampleid_source.sampleid_selector == "bamfile":
|
|
|
13 --tumor-id `basename $sampleid_source.sampleid_tumour | sed 's/.bam$//g'`
|
|
|
14 --normal-id `basename $sampleid_source.sampleid_normal | sed 's/.bam$//g'`
|
|
|
15 #else:
|
|
|
16 --tumor-id $sampleid_source.tumour_id
|
|
|
17 --normal-id $sampleid_source.normal_id
|
|
|
18 #end if
|
|
|
19
|
|
|
20 --vep-path \$ENSEMBL_VEP_84_INSTALL_DIR
|
|
|
21 --vep-data \${ENSEMBL_VEP_84_INSTALL_DIR}/cache
|
|
|
22 --ref-fasta \${ENSEMBL_VEP_84_INSTALL_DIR}/cache/`echo $species_select.value | sed 's/-/\t/g' | cut -f1`/84_`echo $species_select.value | sed 's/-/\t/g' | cut -f2`/*.fa
|
|
|
23 --species `echo $species_select.value | sed 's/-/\t/g' | cut -f1`
|
|
|
24 --ncbi-build `echo $species_select.value | sed 's/-/\t/g' | cut -f2`;
|
|
|
25 </command>
|
|
|
26
|
|
|
27 <inputs>
|
|
|
28 <conditional name="sampleid_source">
|
|
|
29 <param label="Choose the source to open the Sample Id" name="sampleid_selector" type="select">
|
|
|
30 <option value="bamfile">Bam File Name</option>
|
|
|
31 <option value="manual">Manual</option>
|
|
|
32 </param>
|
|
|
33 <when value="bamfile">
|
|
|
34 <param type="data" format="bam" name="sampleid_normal" label="Normal Bam"/>
|
|
|
35 <param type="data" format="bam" name="sampleid_tumour" label="Tumour Bam"/>
|
|
|
36 </when>
|
|
|
37 <when value="manual">
|
|
|
38 <param name="tumour_id" type="text" label="Tumour ID (Name)"/>
|
|
|
39 <param name="normal_id" type="text" label="Normal ID (Name)"/>
|
|
|
40 </when>
|
|
|
41 </conditional>
|
|
|
42 <expand macro="genome_list"/>
|
|
|
43 <param name="input_vcf" type="data" format="vcf" label="Input VCF File" />
|
|
|
44 </inputs>
|
|
|
45
|
|
|
46 <outputs>
|
|
|
47 <data name="output_maf" format="maf" label="#echo os.path.splitext( str( $input_vcf.name ) )[ 0 ] #.${tool.name}.maf" />
|
|
|
48 </outputs>
|
|
|
49
|
|
|
50 <stdio>
|
|
|
51 <exit_code range="1:" level="fatal" description="Failure" />
|
|
|
52 </stdio>
|
|
|
53
|
|
|
54 <requirements>
|
|
3
|
55 <requirement type="package" version="5.18.1">perl</requirement>
|
|
|
56 <requirement type="package" version="84">ensembl_vep</requirement>
|
|
0
|
57 <requirement type="package" version="1.6.7">vcf2maf</requirement>
|
|
5
|
58 <requirement type="package" version="84">ensembl_vep_perl_environment</requirement>
|
|
0
|
59 </requirements>
|
|
|
60
|
|
|
61 <macros>
|
|
|
62 <import>ensembl_vep_macros.xml</import>
|
|
|
63 </macros>
|
|
|
64
|
|
|
65 <help>
|
|
|
66
|
|
|
67 </help>
|
|
|
68 </tool>
|