|
0
|
1 <tool id="covacs_Select_Filtration" name="covacs_Select_filtration" version="3.8">
|
|
|
2 <description>SelectVariants VariantFiltration wrapper for covacs, use in case of not enough snp or indels error in covacs_VariantRecalibrator</description>
|
|
|
3 <macros>
|
|
|
4 </macros>
|
|
|
5 <requirements>
|
|
|
6 <requirement type="package" version="3.8" >gatk</requirement>
|
|
|
7 </requirements>
|
|
|
8 <command>
|
|
|
9 <![CDATA[
|
|
|
10 ### call the .sh to untar the package
|
|
2
|
11 bash $__tool_directory__/mv_untar_gatk.sh &> $log &&
|
|
0
|
12
|
|
|
13 ##sym link to run GATK
|
|
|
14
|
|
|
15 ln -s $input1 input1.vcf &&
|
|
|
16
|
|
|
17 ##GATK tool call
|
|
|
18 java -jar \$CONDA_PREFIX/../../GenomeAnalysisTK.jar
|
|
|
19 -T SelectVariants
|
|
|
20 -R $ref_file.fields.path
|
|
|
21 -V input1.vcf
|
|
|
22 -selectType $TYPE
|
|
|
23 -o variants_recal.indels.vcf 2>$log
|
|
|
24 &&
|
|
|
25 java -jar \$CONDA_PREFIX/../../GenomeAnalysisTK.jar
|
|
|
26 -T VariantFiltration
|
|
|
27 -R $ref_file.fields.path
|
|
|
28 -V variants_recal.indels.vcf
|
|
|
29 --filterExpression "DP<8 || QD < 2.0 || FS > 200.0 || ReadPosRankSum < -20.0"
|
|
|
30 --filterName "filter_LQ_$TYPE"
|
|
|
31 -o variants_recal.filtered.small.panel.region.vcf
|
|
|
32
|
|
|
33 2>> $log
|
|
|
34 ]]>
|
|
|
35 </command>
|
|
|
36 <inputs>
|
|
|
37 <param format="vcf" name="input1" label="input VCF" type="data" optional="true" />
|
|
|
38 <param name="ref_file" type="select" label="Using reference genome" help="Select genome from the list">
|
|
|
39 <options from_data_table="covacs_gatk_indexes">
|
|
|
40 <filter type="sort_by" column="2" />
|
|
|
41 <validator type="no_options" message="No indexes are available" />
|
|
|
42 </options>
|
|
|
43 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
|
|
|
44 </param>
|
|
|
45 <param name="TYPE" type="select" optional="true">
|
|
|
46 <option value="INDEL">INDEL</option>
|
|
|
47 <option value="SNP" selected="true" >SNP</option>
|
|
|
48 </param>
|
|
|
49 </inputs>
|
|
|
50 <outputs>
|
|
|
51 <data format="vcf" name="recal" from_work_dir="variants_recal.indels.vcf" label="SelectVariants on ${on_string} $TYPE :recal"/>
|
|
|
52 <data format="vcf" name="filtered" from_work_dir="variants_recal.filtered.small.panel.region.vcf" label="VariantFiltration on ${on_string} $TYPE :recal"/>
|
|
|
53 <data format="txt" name="log" label="log"/>
|
|
|
54 </outputs>
|
|
|
55 <help>
|
|
|
56 **IMPORTANT** to get the wrapper ready to start the admin user have to download gatk GATK version 3.8 from the broadinstitute site https://software.broadinstitute.org/gatk/download/archive and then move it in the conda_prefix folder, the path of the conda_prefix is written in the galaxy.ini(or .yml) file
|
|
|
57
|
|
|
58 **more informations** at https://software.broadinstitute.org/gatk/documentation/tooldocs/3.8-0/org_broadinstitute_gatk_tools_walkers_variantutils_SelectVariants.php , https://software.broadinstitute.org/gatk/documentation/tooldocs/3.8-0/org_broadinstitute_gatk_tools_walkers_filters_VariantFiltration.php
|
|
|
59
|
|
|
60 **Implemented options** SelectVariants <![CDATA[ &]]> VariantFiltration
|
|
|
61
|
|
|
62 -R Reference sequence file
|
|
|
63
|
|
|
64 -V vcf input
|
|
|
65
|
|
|
66 other options are fixed based on covacs pipeline
|
|
|
67
|
|
|
68 **description** this step can be used if covacs_indel_snp have not enough data to create the model, it calls SelectVariants and VariantFiltration applying the filter expression --filterExpression <![CDATA["DP<8 || QD < 2.0 || FS > 200.0 || ReadPosRankSum < -20.0"]]> to filter the variants both snp and indels
|
|
|
69
|
|
|
70 </help>
|
|
|
71 <citations>
|
|
|
72 <citation type="doi">10.1186/s12864-018-4508-1</citation>
|
|
|
73 </citations>
|
|
|
74 </tool>
|
|
|
75
|