comparison read2mut.xml @ 11:84a1a3f70407 draft

planemo upload for repository https://github.com/Single-Molecule-Genetics/VariantAnalyzerGalaxy/tree/master/tools/variant_analyzer commit ee4a8e6cf290e6c8a4d55f9cd2839d60ab3b11c8
author mheinzl
date Mon, 15 Feb 2021 21:53:24 +0000
parents 11a2a34f8a2b
children 7a418148319d
comparison
equal deleted inserted replaced
10:e18c5293aac7 11:84a1a3f70407
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="read2mut" name="Call specific mutations in reads:" version="2.1.0" profile="19.01"> 2 <tool id="read2mut" name="Call specific mutations in reads:" version="2.0.1" profile="19.01">
3 <description>Looks for reads with mutation at known positions and calculates frequencies and stats.</description> 3 <description>Looks for reads with mutation at known positions and calculates frequencies and stats.</description>
4 <macros> 4 <macros>
5 <import>va_macros.xml</import> 5 <import>va_macros.xml</import>
6 </macros> 6 </macros>
7 <requirements> 7 <expand macro="requirements">
8 <requirement type="package" version="2.7">python</requirement>
9 <requirement type="package" version="1.4.0">matplotlib</requirement>
10 <requirement type="package" version="0.15">pysam</requirement>
11 <requirement type="package" version="1.1.0">xlsxwriter</requirement> 8 <requirement type="package" version="1.1.0">xlsxwriter</requirement>
12 <requirement type="package" version="0.11.6">cyvcf2</requirement> 9 </expand>
13 </requirements>
14 <command><![CDATA[ 10 <command><![CDATA[
15 ln -s '$file2' bam_input.bam && 11 ln -s '$file2' bam_input.bam &&
16 ln -s '${file2.metadata.bam_index}' bam_input.bam.bai && 12 ln -s '${file2.metadata.bam_index}' bam_input.bam.bai &&
17 python '$__tool_directory__/read2mut.py' 13 python '$__tool_directory__/read2mut.py'
18 --mutFile '$file1' 14 --mutFile '$file1'
21 --sscsJson '$file4' 17 --sscsJson '$file4'
22 --thresh '$thresh' 18 --thresh '$thresh'
23 --phred '$phred' 19 --phred '$phred'
24 --trim '$trim' 20 --trim '$trim'
25 $chimera_correction 21 $chimera_correction
26 --softclipping_dist '$softclipping_dist'
27 --reads_threshold '$reads_threshold'
28 --outputFile '$output_xlsx' 22 --outputFile '$output_xlsx'
29 --outputFile2 '$output_xlsx2'
30 --outputFile3 '$output_xlsx3'
31 ]]> 23 ]]>
32 </command> 24 </command>
33 <inputs> 25 <inputs>
34 <param name="file1" type="data" format="vcf" label="DCS Mutation File" optional="false" help="VCF file with DCS mutations. See Help section below for a detailed explanation."/> 26 <param name="file1" type="data" format="vcf" label="DCS Mutation File" optional="false" help="VCF file with DCS mutations. See Help section below for a detailed explanation."/>
35 <param name="file2" type="data" format="bam" label="BAM File of raw reads" optional="false" help="BAM file with aligned raw reads of selected tags."/> 27 <param name="file2" type="data" format="bam" label="BAM File of raw reads" optional="false" help="BAM file with aligned raw reads of selected tags."/>
37 <param name="file4" type="data" format="json" label="JSON File with SSCS tag stats" optional="false" help="JSON file generated by DCS mutations to SSCS stats."/> 29 <param name="file4" type="data" format="json" label="JSON File with SSCS tag stats" optional="false" help="JSON file generated by DCS mutations to SSCS stats."/>
38 <param name="thresh" type="integer" label="Tag count threshold" value="0" help="Integer threshold for displaying mutations. Only mutations occuring in DCS of less than thresh tags are displayed. Default of 0 displays all."/> 30 <param name="thresh" type="integer" label="Tag count threshold" value="0" help="Integer threshold for displaying mutations. Only mutations occuring in DCS of less than thresh tags are displayed. Default of 0 displays all."/>
39 <param name="phred" type="integer" label="Phred quality score threshold" min="0" max="41" value="20" help="Integer threshold for Phred quality score. Only reads higher than this threshold are considered. Default = 20."/> 31 <param name="phred" type="integer" label="Phred quality score threshold" min="0" max="41" value="20" help="Integer threshold for Phred quality score. Only reads higher than this threshold are considered. Default = 20."/>
40 <param name="trim" type="integer" label="Trimming threshold" value="10" help="Integer threshold for assigning mutations at start and end of reads to lower tier. Default 10."/> 32 <param name="trim" type="integer" label="Trimming threshold" value="10" help="Integer threshold for assigning mutations at start and end of reads to lower tier. Default 10."/>
41 <param name="chimera_correction" type="boolean" label="Apply chimera correction?" truevalue="--chimera_correction" falsevalue="" checked="False" help="Count chimeric variants and correct the variant frequencies."/> 33 <param name="chimera_correction" type="boolean" label="Apply chimera correction?" truevalue="--chimera_correction" falsevalue="" checked="False" help="Count chimeric variants and correct the variant frequencies."/>
42 <param name="softclipping_dist" type="integer" label="Distance between artifact and softclipping of the reads" min="1" value="15" help="Count mutation as an artifact if mutation lies within this parameter away from the softclipping part of the reads. Default = 20"/>
43 <param name="reads_threshold" type="float" label="Minimum percentage of softclipped reads in a family" min="0.0" max="1.0" value="1.0" help="Float number which specifies the minimum percentage of softclipped reads in a family to be considered in the softclipping tiers. Default: 1.0, means all reads of a family have to be softclipped."/>
44 </inputs> 34 </inputs>
45 <outputs> 35 <outputs>
46 <data name="output_xlsx" format="xlsx" label="${tool.name} on ${on_string}: XLSX summary"/> 36 <data name="output_xlsx" format="xlsx" label="${tool.name} on ${on_string}: XLSX"/>
47 <data name="output_xlsx2" format="xlsx" label="${tool.name} on ${on_string}: XLSX allele frequencies"/>
48 <data name="output_xlsx3" format="xlsx" label="${tool.name} on ${on_string}: XLSX tiers"/>
49 </outputs> 37 </outputs>
50 <tests> 38 <tests>
51 <test> 39 <test>
52 <param name="file1" value="FreeBayes_test.vcf"/> 40 <param name="file1" value="FreeBayes_test.vcf"/>
53 <param name="file2" value="Interesting_Reads_test.trim.bam"/> 41 <param name="file2" value="Interesting_Reads_test.trim.bam"/>
54 <param name="file3" value="tag_count_dict_test.json"/> 42 <param name="file3" value="tag_count_dict_test.json"/>
55 <param name="file4" value="SSCS_counts_test.json"/> 43 <param name="file4" value="SSCS_counts_test.json"/>
56 <param name="thresh" value="0"/> 44 <param name="thresh" value="0"/>
57 <param name="phred" value="20"/> 45 <param name="phred" value="20"/>
58 <param name="trim" value="10"/> 46 <param name="trim" value="10"/>
59 <param name="chimera_correction"/> 47 <param name="chimera_correction" value="True"/>
60 <param name="softclipping_dist" value="15"/> 48 <output name="output_xlsx" file="Variant_Analyzer_test.xlsx" decompress="true" lines_diff="2"/>
61 <param name="reads_threshold" value="1.0"/>
62 <output name="output_xlsx" file="Variant_Analyzer_summary_test.xlsx" decompress="true" lines_diff="10"/>
63 <output name="output_xlsx2" file="Variant_Analyzer_allele_frequencies_test.xlsx" decompress="true" lines_diff="10"/>
64 <output name="output_xlsx3" file="Variant_Analyzer_tiers_test.xlsx" decompress="true" lines_diff="10"/>
65 </test> 49 </test>
66 </tests> 50 </tests>
67 <help> <![CDATA[ 51 <help> <![CDATA[
68 **What it does** 52 **What it does**
69 53
88 stats of tags that carry a mutation in the SSCS at the same position a mutation 72 stats of tags that carry a mutation in the SSCS at the same position a mutation
89 is called in the DCS. 73 is called in the DCS.
90 74
91 **Output** 75 **Output**
92 76
93 The output are three XLSX files containing frequencies stats for DCS mutations based 77 The output is an XLSX file containing frequencies stats for DCS mutations based
94 on information from the raw reads. In addition to that a tier based 78 on information from the raw reads. In addition to that a tier based
95 classification is provided based on the amout of support for a true variant call. 79 classification is provided based on the amout of support for a true variant call.
96 80
97 ]]> 81 ]]>
98 </help> 82 </help>