comparison picard_CollectInsertSizeMetrics.xml @ 33:3f254c5ced1d draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/picard commit 9ecbbb878d68a980ba35a90865e524c723ca3ed8
author iuc
date Sun, 03 Mar 2024 16:06:11 +0000
parents f9242e01365a
children
comparison
equal deleted inserted replaced
32:f9242e01365a 33:3f254c5ced1d
1 <tool name="CollectInsertSizeMetrics" id="picard_CollectInsertSizeMetrics" version="@TOOL_VERSION@.@WRAPPER_VERSION@"> 1 <tool name="CollectInsertSizeMetrics" id="picard_CollectInsertSizeMetrics" version="@TOOL_VERSION@.@WRAPPER_VERSION@" profile="@PROFILE@">
2 <description>plots distribution of insert sizes</description> 2 <description>plots distribution of insert sizes</description>
3 <macros> 3 <macros>
4 <import>picard_macros.xml</import> 4 <import>picard_macros.xml</import>
5 <token name="@WRAPPER_VERSION@">2</token> 5 <token name="@WRAPPER_VERSION@">0</token>
6 </macros> 6 </macros>
7 <expand macro="requirements"> 7 <expand macro="requirements">
8 <requirement type="package" version="3.4.1">r-base</requirement>
9 </expand> 8 </expand>
10 <command detect_errors="exit_code"><![CDATA[ 9 <command detect_errors="exit_code"><![CDATA[
11 @java_options@ 10 @java_options@
12 @symlink_element_identifier@ 11 @symlink_element_identifier@
13 ##set up input files 12 ##set up input files
14 13
15 #set $reference_fasta_filename = "localref.fa" 14 #set $reference_fasta_filename = "localref.fa"
16 15
17 @handle_reference_source@ 16 @handle_reference_source@
18 17
19 picard 18 picard CollectInsertSizeMetrics
20 CollectInsertSizeMetrics 19 --INPUT '$escaped_element_identifier'
21 INPUT='$escaped_element_identifier' 20 --OUTPUT '${outFile}'
22 OUTPUT="${outFile}" 21 --Histogram_FILE '${histFile}'
23 HISTOGRAM_FILE="${histFile}" 22 --DEVIATIONS '${deviations}'
24 DEVIATIONS="${deviations}"
25 23
26 #if str( $hist_width ): 24 #if str( $hist_width ):
27 HISTOGRAM_WIDTH="${hist_width}" 25 --HISTOGRAM_WIDTH '${hist_width}'
28 #end if 26 #end if
29 27
30 MINIMUM_PCT="${min_pct}" 28 --MINIMUM_PCT '${min_pct}'
31 REFERENCE_SEQUENCE="${reference_fasta_filename}" 29 --REFERENCE_SEQUENCE '${reference_fasta_filename}'
32 ASSUME_SORTED="${assume_sorted}" 30 --ASSUME_SORTED '${assume_sorted}'
33 METRIC_ACCUMULATION_LEVEL="${metric_accumulation_level}" 31 --METRIC_ACCUMULATION_LEVEL '${metric_accumulation_level}'
34 32
35 VALIDATION_STRINGENCY="${validation_stringency}" 33 --VALIDATION_STRINGENCY '${validation_stringency}'
36 QUIET=true 34 --QUIET true
37 VERBOSITY=ERROR 35 --VERBOSITY ERROR
38 36
39 ]]></command> 37 ]]></command>
40 <inputs> 38 <inputs>
41 <param format="sam,bam" name="inputFile" type="data" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset."/> 39 <param format="sam,bam" name="inputFile" type="data" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset."/>
42 <conditional name="reference_source"> 40 <conditional name="reference_source">
43 <param name="reference_source_selector" type="select" label="Load reference genome from"> 41 <param name="reference_source_selector" type="select" label="Load reference genome from">
44 <option value="cached">Local cache</option> 42 <option value="cached">Local cache</option>
45 <option value="history">History</option> 43 <option value="history">History</option>
46 </param> 44 </param>
47 <when value="cached"> 45 <when value="cached">
48 <param name="ref_file" type="select" label="Using reference genome" help="REFERENCE_SEQUENCE"> 46 <param name="ref_file" type="select" label="Using reference genome" help="REFERENCE_SEQUENCE">
49 <options from_data_table="all_fasta"> 47 <options from_data_table="all_fasta">
50 </options> 48 </options>
51 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> 49 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
50 </param>
51 </when>
52 <when value="history">
53 <param name="ref_file" type="data" format="fasta" label="Use the folloing dataset as the reference sequence" help="REFERENCE_SEQUENCE; You can upload a FASTA sequence to the history and use it as reference"/>
54 </when>
55 </conditional>
56 <param name="deviations" type="float" value="10.0" label="Generate mean, sd and plots by trimming the data down to MEDIAN + DEVIATIONS*MEDIAN_ABSOLUTE_DEVIATION" help="DEVIATIONS; This option is offered because insert size data typically includes enough anomalous values from chimeras and other artifacts to make the mean and SD grossly misleading regarding the real distribution. default=10.0"/>
57 <param name="hist_width" type="integer" optional="True" label="Explicitly sets the Histogram width, overriding automatic truncation of Histogram tail" help="HISTOGRAM_WIDTH; optional"/>
58 <param name="min_pct" type="float" value="0.05" label="When generating the Histogram, discard any data categories (out of FR, TANDEM, RF) that have fewer than this percentage of overall reads" help="MINIMUM_PCT; (Range: 0 to 1). default=0.05. "/>
59 <param name="assume_sorted" type="boolean" label="Assume the input file is already sorted" checked="true" truevalue="true" falsevalue="false" help="ASSUME_SORTED"/>
60 <param name="metric_accumulation_level" type="select" label="The level(s) at which to accumulate metrics" multiple="true" help="METRIC_ACCUMULATION_LEVEL">
61 <option value="ALL_READS" selected="True">All reads</option>
62 <option value="SAMPLE">Sample</option>
63 <option value="LIBRARY">Library</option>
64 <option value="READ_GROUP">Read group</option>
52 </param> 65 </param>
53 </when> 66 <expand macro="VS"/>
54 <when value="history"> 67 </inputs>
55 <param name="ref_file" type="data" format="fasta" label="Use the folloing dataset as the reference sequence" help="REFERENCE_SEQUENCE; You can upload a FASTA sequence to the history and use it as reference" /> 68 <outputs>
56 </when> 69 <data format="tabular" name="outFile" label="${tool.name} on ${on_string}"/>
57 </conditional> 70 <data format="pdf" name="histFile" label="${tool.name} on ${on_string}: Histogram"/>
58 <param name="deviations" type="float" value="10.0" label="Generate mean, sd and plots by trimming the data down to MEDIAN + DEVIATIONS*MEDIAN_ABSOLUTE_DEVIATION" help="DEVIATIONS; This option is offered because insert size data typically includes enough anomalous values from chimeras and other artifacts to make the mean and SD grossly misleading regarding the real distribution. default=10.0"/> 71 </outputs>
59 <param name="hist_width" type="integer" optional="True" label="Explicitly sets the Histogram width, overriding automatic truncation of Histogram tail" help="HISTOGRAM_WIDTH; optional"/> 72 <tests>
60 <param name="min_pct" type="float" value="0.05" label="When generating the Histogram, discard any data categories (out of FR, TANDEM, RF) that have fewer than this percentage of overall reads" help="MINIMUM_PCT; (Range: 0 to 1). default=0.05. "/> 73 <test>
61 <param name="assume_sorted" type="boolean" label="Assume the input file is already sorted" checked="true" truevalue="true" falsevalue="false" help="ASSUME_SORTED"/> 74 <param name="metric_accumulation_level" value="ALL_READS"/>
62 <param name="metric_accumulation_level" type="select" label="The level(s) at which to accumulate metrics" multiple="true" help="METRIC_ACCUMULATION_LEVEL"> 75 <param name="deviations" value="10.0"/>
63 <option value="ALL_READS" selected="True">All reads</option> 76 <param name="hist_width" value="500"/>
64 <option value="SAMPLE">Sample</option> 77 <param name="min_pct" value="0.05"/>
65 <option value="LIBRARY">Library</option> 78 <param name="assume_sorted" value="true"/>
66 <option value="READ_GROUP">Read group</option> 79 <param name="reference_source_selector" value="history"/>
67 </param> 80 <param name="ref_file" value="picard_CollectInsertSizeMetrics_ref.fa"/>
68 81 <param name="inputFile" value="picard_CollectInsertSizeMetrics.bam" ftype="bam"/>
69 <expand macro="VS" /> 82 <output name="outFile" file="picard_CollectInsertSizeMetrics_test1.tab" ftype="tabular" lines_diff="4"/>
70 83 </test>
71 </inputs> 84 </tests>
72 85 <help>
73 <outputs>
74 <data format="tabular" name="outFile" label="${tool.name} on ${on_string}: tabular"/>
75 <data format="pdf" name="histFile" label="${tool.name} on ${on_string}: PDF"/>
76 </outputs>
77
78 <tests>
79 <test>
80 <param name="metric_accumulation_level" value="ALL_READS"/>
81 <param name="deviations" value="10.0" />
82 <param name="hist_width" value="500" />
83 <param name="min_pct" value="0.05" />
84 <param name="assume_sorted" value="true" />
85 <param name="reference_source_selector" value="history" />
86 <param name="ref_file" value="picard_CollectInsertSizeMetrics_ref.fa" />
87 <param name="inputFile" value="picard_CollectInsertSizeMetrics.bam" ftype="bam" />
88 <output name="outFile" file="picard_CollectInsertSizeMetrics_test1.tab" ftype="tabular" lines_diff="4"/>
89 </test>
90 </tests>
91
92
93 <help>
94 86
95 .. class:: infomark 87 .. class:: infomark
96 88
97 **Purpose** 89 **Purpose**
98 90
127 values: {true, false} 119 values: {true, false}
128 120
129 @more_info@ 121 @more_info@
130 122
131 </help> 123 </help>
132 <expand macro="citations" /> 124 <expand macro="citations"/>
133 </tool> 125 </tool>