comparison picard_CollectAlignmentSummaryMetrics.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="Collect Alignment Summary Metrics" id="picard_CASM" version="@TOOL_VERSION@.@WRAPPER_VERSION@"> 1 <tool name="Collect Alignment Summary Metrics" id="picard_CASM" version="@TOOL_VERSION@.@WRAPPER_VERSION@" profile="@PROFILE@">
2 <description>writes a file containing summary alignment metrics</description> 2 <description>writes a file containing summary alignment metrics</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 <command detect_errors="exit_code"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
9 @java_options@ 9 @java_options@
10 @symlink_element_identifier@ 10 @symlink_element_identifier@
11 ##set up input files 11 ##set up input files
12 12
13 #set $reference_fasta_filename = "localref.fa" 13 #set $reference_fasta_filename = "localref.fa"
14 14
15 @handle_reference_source@ 15 @handle_reference_source@
16 16
17 picard 17 picard CollectAlignmentSummaryMetrics
18 CollectAlignmentSummaryMetrics 18 --INPUT '$escaped_element_identifier'
19 INPUT='$escaped_element_identifier' 19 --OUTPUT '${outFile}'
20 OUTPUT="${outFile}" 20 --MAX_INSERT_SIZE ${maxinsert}
21 MAX_INSERT_SIZE=${maxinsert}
22 #for $sequence in $adapters: 21 #for $sequence in $adapters:
23 ADAPTER_SEQUENCE="${sequence.adapter}" 22 --ADAPTER_SEQUENCE '${sequence.adapter}'
24 #end for 23 #end for
25 #for $level in str($metric_accumulation_level).split(','): 24 #for $level in str($metric_accumulation_level).split(','):
26 METRIC_ACCUMULATION_LEVEL="${level}" 25 --METRIC_ACCUMULATION_LEVEL '${level}'
27 #end for 26 #end for
28 IS_BISULFITE_SEQUENCED="${bisulphite}" 27 --IS_BISULFITE_SEQUENCED '${bisulphite}'
29 28
30 REFERENCE_SEQUENCE="${reference_fasta_filename}" 29 --REFERENCE_SEQUENCE '${reference_fasta_filename}'
31 30
32 ASSUME_SORTED="${assume_sorted}" 31 --ASSUME_SORTED '${assume_sorted}'
33 32
34 VALIDATION_STRINGENCY="${validation_stringency}" 33 --VALIDATION_STRINGENCY '${validation_stringency}'
35 QUIET=true 34 --QUIET true
36 VERBOSITY=ERROR 35 --VERBOSITY ERROR
37 36
38 ]]></command> 37 ]]></command>
39 <inputs> 38 <inputs>
40 <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."/>
41 <conditional name="reference_source"> 40 <conditional name="reference_source">
42 <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">
43 <option value="cached">Local cache</option> 42 <option value="cached">Local cache</option>
44 <option value="history">History</option> 43 <option value="history">History</option>
45 </param> 44 </param>
46 <when value="cached"> 45 <when value="cached">
47 <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">
48 <options from_data_table="all_fasta"> 47 <options from_data_table="all_fasta">
49 </options> 48 </options>
50 <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 following 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="metric_accumulation_level" type="select" label="The level(s) at which to accumulate metrics" multiple="true" help="METRIC_ACCUMULATION_LEVEL">
57 <option value="ALL_READS" selected="True">All reads</option>
58 <option value="SAMPLE">Sample</option>
59 <option value="LIBRARY">Library</option>
60 <option value="READ_GROUP">Read group</option>
51 </param> 61 </param>
52 </when> 62 <param name="assume_sorted" type="boolean" label="Assume the input file is already sorted" checked="true" truevalue="true" falsevalue="false" help="ASSUME_SORTED"/>
53 <when value="history"> 63 <param name="bisulphite" type="boolean" label="Input file contains Bisulphite sequenced reads" checked="false" falsevalue="false" truevalue="true" help="IS_BISULFITE_SEQUENCED"/>
54 <param name="ref_file" type="data" format="fasta" label="Use the following dataset as the reference sequence" help="REFERENCE_SEQUENCE; You can upload a FASTA sequence to the history and use it as reference" /> 64 <repeat name="adapters" title="Adapter" min="0" help="You can provide multiple adaptor sequences">
55 </when> 65 <param name="adapter" type="text" label="Use this adaptor sequence" help="ADAPTER_SEQUENCE"/>
56 </conditional> 66 </repeat>
57 <param name="metric_accumulation_level" type="select" label="The level(s) at which to accumulate metrics" multiple="true" help="METRIC_ACCUMULATION_LEVEL"> 67 <param name="maxinsert" value="100000" type="integer" label="Larger paired end reads and inter-chromosomal pairs considered chimeric" help="MAX_INSERT_SIZE"/>
58 <option value="ALL_READS" selected="True">All reads</option> 68 <expand macro="VS"/>
59 <option value="SAMPLE">Sample</option> 69 </inputs>
60 <option value="LIBRARY">Library</option> 70 <outputs>
61 <option value="READ_GROUP">Read group</option> 71 <data format="tabular" name="outFile" label="${tool.name} on ${on_string}: Summary stats"/>
62 </param> 72 </outputs>
63 <param name="assume_sorted" type="boolean" label="Assume the input file is already sorted" checked="true" truevalue="true" falsevalue="false" help="ASSUME_SORTED"/> 73 <tests>
64 <param name="bisulphite" type="boolean" label="Input file contains Bisulphite sequenced reads" checked="false" falsevalue="false" truevalue="true" help="IS_BISULFITE_SEQUENCED"/> 74 <test>
65 <repeat name="adapters" title="Adapter" min="0" help="You can provide multiple adaptor sequences"> 75 <param name="bisulphite" value="false"/>
66 <param name="adapter" type="text" label="Use this adaptor sequence" help="ADAPTER_SEQUENCE"/> 76 <param name="assume_sorted" value="true"/>
67 </repeat> 77 <repeat name="adapters">
68 <param name="maxinsert" value="100000" type="integer" label="Larger paired end reads and inter-chromosomal pairs considered chimeric" help="MAX_INSERT_SIZE"/> 78 <param name="adapter" value=""/>
69 <expand macro="VS" /> 79 </repeat>
70 80 <param name="maxinsert" value="100000"/>
71 </inputs> 81 <param name="reference_source_selector" value="history"/>
72 <outputs> 82 <param name="ref_file" value="picard_CASM_ref.fa"/>
73 <data format="tabular" name="outFile" label="${tool.name} on ${on_string}: tablular"/> 83 <param name="inputFile" value="picard_CASM.bam" ftype="bam"/>
74 </outputs> 84 <output name="outFile" file="picard_CASM_test1.tab" ftype="tabular" lines_diff="4"/>
75 <tests> 85 </test>
76 <test> 86 </tests>
77 <param name="bisulphite" value="false" /> 87 <help>
78 <param name="assume_sorted" value="true" />
79 <repeat name="adapters">
80 <param name="adapter" value = ""/>
81 </repeat>
82 <param name="maxinsert" value="100000" />
83 <param name="reference_source_selector" value="history" />
84 <param name="ref_file" value="picard_CASM_ref.fa" />
85 <param name="inputFile" value="picard_CASM.bam" ftype="bam" />
86 <output name="outFile" file="picard_CASM_test1.tab" ftype="tabular" lines_diff="4"/>
87 </test>
88 </tests>
89 <help>
90 88
91 .. class:: infomark 89 .. class:: infomark
92 90
93 **Purpose** 91 **Purpose**
94 92
119 AS=Boolean If true (default), then the sort order in the header file will be ignored. 117 AS=Boolean If true (default), then the sort order in the header file will be ignored.
120 118
121 @more_info@ 119 @more_info@
122 120
123 </help> 121 </help>
124 <expand macro="citations" /> 122 <expand macro="citations"/>
125 </tool> 123 </tool>