annotate samtools_view.xml @ 7:b01db2684fa5 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
author iuc
date Tue, 21 Jan 2020 07:40:18 -0500
parents ff313de5f7f4
children bf328cec6a42
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
1 <tool id="samtools_view" name="Samtools view" version="@TOOL_VERSION@+galaxy1">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
2 <description>- reformat, filter, or subsample SAM, BAM or CRAM</description>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
3 <macros>
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
4 <import>macros.xml</import>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
5 <token name="@REF_DATA@">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
6 ## additional reference data
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
7 #if $reffa!=None:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
8 -T '$reffa'
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
9 -t '$reffai'
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
10 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
11 </token>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
12 <xml name="read_output_formatting">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
13 <yield />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
14 <section name="adv_output" title="Read Reformatting Options" expanded="false">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
15 <repeat name="readtags" title="Strip read tags from output">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
16 <param name="readtag" type="text" argument="-x" label="Read tag to strip" help="Read tag to exclude from output."/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
17 </repeat>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
18 <param name="collapsecigar" type="boolean" argument="-B" truevalue="-B" falsevalue="" checked="false" label="Collapse backward CIGAR operation" help="Collapse the backward CIGAR operation." />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
19 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
20 </xml>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
21 <xml name="output_format_selector">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
22 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
23 <param name="oformat" type="select" label="Output format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
24 <option value="sam">SAM</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
25 <option value="bam" selected="True">BAM (-b)</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
26 <option value="cram">CRAM (-C)</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
27 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
28 <when value="sam">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
29 <yield />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
30 <param name="fmtopt" type="hidden" value="" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
31 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
32 <when value="bam">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
33 <param name="fmtopt" type="hidden" value="-b" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
34 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
35 <when value="cram">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
36 <param name="fmtopt" type="hidden" value="-C" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
37 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
38 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
39 </xml>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
40 </macros>
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
41 <expand macro="requirements">
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
42 <requirement type="package">gawk</requirement>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
43 </expand>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
44 <expand macro="stdio"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
45 <expand macro="version_command"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
46 <command><![CDATA[
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
47 @ADDTHREADS@
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
48 ## prepare reference data
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
49 @PREPARE_FASTA_IDX@
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
50 @PREPARE_IDX@
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
51
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
52 #if str($mode.outtype) == 'header':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
53 ## call samtools view and be done
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
54 samtools view
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
55 -H ${mode.output_options.output_format.fmtopt} -o outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
56 @REF_DATA@
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
57 infile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
58 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
59 ## are filtering and/or subsampling in effect?
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
60 #set $with_filtering = False
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
61 #set $with_subsampling = False
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
62 #if str($mode.outtype) == 'selected_reads':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
63 #set $with_filtering = True
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
64 #if str($mode.subsample_config.subsampling_mode.select_subsample) != 'fraction' or $mode.subsample_config.subsampling_mode.factor > 1:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
65 #set $with_subsampling = True
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
66 #end if
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
67 #end if
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
68
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
69 ## are we producing one or two outputs?
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
70 #if str($mode.outtype) == 'selected_reads' and str($mode.output_options.reads_report_type) != 'count' and str($mode.output_options.complementary_output) == 'yes':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
71 #set $with_non_selected_reads_output = True
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
72 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
73 #set $with_non_selected_reads_output = False
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
74 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
75
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
76 #set $std_filters = ''
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
77 #set $reg_filters = ''
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
78 #if $with_filtering:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
79 ## build string of all user-configured filter options
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
80 #if str($mode.filter_config.cond_region.select_region) == 'bed':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
81 #set std_filters = $std_filters + " -L '%s'" % str($mode.filter_config.cond_region.bedfile)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
82 #elif str($mode.filter_config.cond_region.select_region) == 'text':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
83 #set $reg_filters = "'%s'" % str($mode.filter_config.cond_region.regions).strip()
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
84 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
85
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
86 #if $mode.filter_config.cond_rg.select_rg == 'text':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
87 #set $std_filters = $std_filters + " -r '%s'" % str($mode.filter_config.cond_rg.readgr)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
88 #else if $mode.filter_config.cond_rg.select_rg == 'file':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
89 #set $std_filters = $std_filters + " -R '%s'" % str($mode.filter_config.cond_rg.rgfile)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
90 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
91 #if str($mode.filter_config.quality) != '' and int($mode.filter_config.quality) > 0:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
92 #set $std_filters = $std_filters + " -q %s" % str($mode.filter_config.quality)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
93 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
94 #if str($mode.filter_config.library):
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
95 #set $std_filters = $std_filters + " -l '%s'" % str($mode.filter_config.library)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
96 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
97 #if str($mode.filter_config.cigarcons):
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
98 #set $std_filters = $std_filters + " -m %s" % str($mode.filter_config.cigarcons)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
99 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
100 #if str($mode.filter_config.inclusive_filter) != 'None':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
101 #set $filter = str($mode.filter_config.inclusive_filter)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
102 @FLAGS@
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
103 #set $std_filters = $std_filters + " -f %s" % str($flags)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
104 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
105 #if str($mode.filter_config.exclusive_filter) != 'None':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
106 #set $filter = str($mode.filter_config.exclusive_filter)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
107 @FLAGS@
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
108 #set $std_filters = $std_filters + " -F %s" % str($flags)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
109 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
110 #if str($mode.filter_config.exclusive_filter_all) != 'None':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
111 #set $filter = str($mode.filter_config.exclusive_filter_all)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
112 @FLAGS@
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
113 #set $std_filters = $std_filters + " -G %s" % str($flags)
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
114 #end if
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
115 #end if
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
116
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
117 #if $with_subsampling:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
118 ## handle seed and fraction calculation for subsampling
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
119 #import random
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
120 #if str($mode.subsample_config.subsampling_mode.seed):
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
121 #set $seed = int($mode.subsample_config.subsampling_mode.seed)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
122 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
123 #set $seed = random.randrange(32768)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
124 #end if
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
125
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
126 #if $mode.subsample_config.subsampling_mode.select_subsample == 'target':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
127 ##this must be done before the main command because we don't know the total # reads until execution time
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
128 #if $input.is_of_type('sam') or $std_filters or $reg_filters:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
129 ## There is no index or we cannot use it because we are
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
130 ## not dealing with all of the reads in the indexed
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
131 ## file. We have to do an extra pass over the input to
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
132 ## count the reads to subsample.
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
133 sample_fragment=`samtools view -c $std_filters infile $reg_filters | awk '{s=\$1} END {frac=${mode.subsample_config.subsampling_mode.target}/s; print(frac < 1 ? $seed+frac : ".0")}'` &&
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
134 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
135 ## We can get the count of reads to subsample using
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
136 ## an inexpensive call to idxstats.
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
137 sample_fragment=`samtools idxstats infile | awk '{s+=\$4+\$3} END {frac=${mode.subsample_config.subsampling_mode.target}/s; print(frac < 1 ? $seed+frac : ".0")}'` &&
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
138 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
139 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
140 #end if
1
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
141
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
142 ## call samtools view
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
143 samtools view
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
144 -@ \$addthreads
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
145
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
146 #if str($mode.output_options.reads_report_type) == 'count':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
147 -c
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
148 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
149 ${mode.output_options.output_format.fmtopt}
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
150 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
151
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
152 ## filter options (except regions filter, which is the last parameter)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
153 $std_filters
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
154
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
155 #if $with_subsampling:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
156 #if str($mode.subsample_config.subsampling_mode.select_subsample) == "target":
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
157 ##this is calculated at execution time before the main samtools command
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
158 -s \${sample_fragment}
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
159 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
160 #set $fraction = $seed + 1 / float($mode.subsample_config.subsampling_mode.factor)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
161 -s $fraction
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
162 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
163 #end if
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
164
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
165 ## output options
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
166 #if str($mode.output_options.reads_report_type) == 'count':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
167 -o outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
168 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
169 ## output options
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
170 #if str($mode.output_options.output_format.oformat) == 'sam':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
171 ${mode.output_options.output_format.with_header}
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
172 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
173 ${mode.output_options.adv_output.collapsecigar}
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
174 #for $s in $mode.output_options.adv_output.readtags:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
175 -x '${s.readtag}'
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
176 #end for
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
177 #if str($mode.output_options.reads_report_type) == 'retained'
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
178 -o outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
179 #if $with_non_selected_reads_output:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
180 -U inv_outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
181 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
182 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
183 -U outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
184 #if $with_non_selected_reads_output:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
185 -o inv_outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
186 #else:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
187 -o /dev/null
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
188 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
189 #end if
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
190
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
191 ##currently reference based CRAM is disabled (see https://github.com/galaxyproject/tools-iuc/pull/1963)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
192 #if $mode.output_options.output_format.oformat == 'cram':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
193 --output-fmt-option no_ref
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
194 #end if
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
195 #end if
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
196
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
197 @REF_DATA@
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
198
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
199 infile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
200
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
201 ## region filter needs to be at the end
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
202 $reg_filters
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
203
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
204 #if str($mode.output_options.reads_report_type) != 'count':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
205 ## if data is converted from an unsorted file (SAM, CRAM, or unsorted BAM) to BAM
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
206 ## then sort the output by coordinate,
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
207 #if not $input.is_of_type('bam') and str($mode.output_options.output_format.oformat) == 'bam':
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
208 && samtools sort
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
209 -@ \$addthreads -m \${GALAXY_MEMORY_MB:-768}M -T "\${TMPDIR:-.}"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
210 -O bam
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
211 -o tmpsam
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
212 outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
213 && mv tmpsam outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
214 #if $with_non_selected_reads_output:
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
215 && samtools sort
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
216 -@ \$addthreads -m \${GALAXY_MEMORY_MB:-768}M -T "\${TMPDIR:-.}"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
217 -O bam
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
218 -o tmpsam
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
219 inv_outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
220 && mv tmpsam inv_outfile
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
221 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
222 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
223 #end if
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
224
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
225 ##end of reads and count-specific section
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
226 #end if
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
227 ]]></command>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
228 <inputs>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
229 <!-- note unsorted bam includes all derived bam types (inlcuding bam which is sorted) -->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
230 <param name="input" format="sam,unsorted.bam,cram" type="data" label="SAM/BAM/CRAM data set" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
231 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
232 <param name="outtype" type="select" label="What would you like to look at?">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
233 <option value="all_reads">All reads in the input dataset</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
234 <option value="selected_reads">A filtered/subsampled selection of reads</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
235 <option value="header">Just the input header (-H)</option>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
236 </param>
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
237 <when value="all_reads">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
238 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
239 <param name="reads_report_type" type="select" label="What would you like to have reported?">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
240 <option value="retained">The actual reads</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
241 <option value="count">The count of reads (-c)</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
242 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
243 <when value="retained">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
244 <expand macro="read_output_formatting" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
245 <expand macro="output_format_selector">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
246 <param name="with_header" type="boolean" truevalue="-h" falsevalue="" checked="True"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
247 label="Include SAM header in the output?" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
248 </expand>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
249 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
250 <when value="count" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
251 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
252 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
253 <when value="selected_reads">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
254 <section name="filter_config" title="Configure filters" expanded="false">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
255 <conditional name="cond_region">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
256 <param name="select_region" type="select" label="Filter by regions">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
257 <option value="no" selected="True">No</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
258 <option value="text">Manualy specify regions</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
259 <option value="bed">Regions from BED file</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
260 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
261 <when value="no"/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
262 <when value="text">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
263 <param name="regions" type="text" optional="false" label="Filter by regions" help="One or more space-separated region specifications to restrict output to only those alignments which overlap the specified region(s)."/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
264 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
265 <when value="bed">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
266 <param name="bedfile" format="bed" argument="-L" optional="false" type="data" label="Filter by intervals in a bed file" help="Only output alignments overlapping the intervals in the input bed file." />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
267 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
268 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
269 <conditional name="cond_rg">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
270 <param name="select_rg" type="select" label="Filter by readgroup">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
271 <option value="no" selected="True">No</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
272 <option value="text">Single read group </option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
273 <option value="file">Read groups from file</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
274 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
275 <when value="no"/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
276 <when value="text">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
277 <param name="readgr" type="text" argument="-r" label="Filter by read group" help="Only output alignments in read group." />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
278 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
279 <when value="file">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
280 <param name="rgfile" type="data" format="tabular" argument="-R" label="Filter by read groups in file" help="Output alignments in read groups listed in FILE." />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
281 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
282 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
283 <param name="quality" type="integer" argument="-q" optional="true" min="0" label="Filter by quality" help="Skip alignments with MAPQ smaller than INT." />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
284 <param name="library" type="text" argument="-l" optional="true" label="Filter by library" help="Only output alignments in library STR" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
285 <param name="cigarcons" type="integer" argument="-m" optional="true" min="0" label="Filter by number of CIGAR bases consuming query sequence" help="Only output alignments with number of CIGAR bases consuming query sequence greater than or equal INT." />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
286 <param name="inclusive_filter" argument="-f" type="select" multiple="True" label="Require that these flags are set">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
287 <expand macro="flag_options" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
288 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
289 <param name="exclusive_filter" argument="-F" type="select" multiple="True" label="Exclude reads with any of the following flags set">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
290 <expand macro="flag_options" />
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
291 </param>
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
292 <param name="exclusive_filter_all" argument="-G" type="select" multiple="True" label="Exclude reads with all of the following flags set">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
293 <expand macro="flag_options" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
294 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
295 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
296 <section name="subsample_config" title="Configure subsampling" expanded="false">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
297 <conditional name="subsampling_mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
298 <param name="select_subsample" type="select" argument="-s" label="Subsample alignment">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
299 <option value="fraction">Specify a downsampling factor</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
300 <option value="target">Specify a target # of reads</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
301 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
302 <when value="fraction">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
303 <param name="factor" type="float" optional="False" value="1" min="1" label="Downsampling factor" help="The factor by which to downsample the input reads. A fraction of approx. 1/factor of the reads will be kept (default: 1 = no downsampling)." />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
304 <expand macro="seed_input" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
305 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
306 <when value="target">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
307 <param name="target" type="integer" optional="False" min="0" value="" label="Target # of reads" help="Sets the approx. target number of reads to subsample." />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
308 <expand macro="seed_input" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
309 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
310 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
311 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
312 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
313 <param name="reads_report_type" type="select"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
314 label="What would you like to have reported?"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
315 help="Hint: To invert all of the filtering/subsampling logic configured above, choose 'Reads dropped during filtering and subsampling'.">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
316 <option value="retained">All reads retained after filtering and subsampling</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
317 <option value="dropped">Reads dropped during filtering and subsampling</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
318 <option value="count">The count of retained reads (-c)</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
319 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
320 <when value="retained">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
321 <expand macro="read_output_formatting">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
322 <param name="complementary_output" type="boolean" truevalue="yes" falsevalue="no" checked="false"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
323 label="Produce extra dataset with dropped reads?" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
324 </expand>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
325 <expand macro="output_format_selector">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
326 <param name="with_header" type="boolean" truevalue="-h" falsevalue="" checked="True"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
327 label="Include SAM header in the output?" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
328 </expand>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
329 </when>
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
330 <when value="dropped">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
331 <expand macro="read_output_formatting">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
332 <param name="complementary_output" type="boolean" truevalue="yes" falsevalue="no" checked="false"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
333 label="Produce extra dataset with retained reads?" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
334 </expand>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
335 <expand macro="output_format_selector">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
336 <param name="with_header" type="boolean" truevalue="-h" falsevalue="" checked="True"
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
337 label="Include SAM header in the output?" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
338 </expand>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
339 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
340 <when value="count" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
341 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
342 </when>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
343 <when value="header">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
344 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
345 <param name="reads_report_type" type="select" label="What would you like to have reported?">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
346 <option value="">The header in ...</option>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
347 </param>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
348 <when value="">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
349 <expand macro="output_format_selector" />
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
350 </when>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
351 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
352 </when>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
353 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
354 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
355 <param name="addref_select" type="select" label="Reference data">
1
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
356 <help>Reference data as fasta(.gz). Required for SAM input without @SQ headers and useful/required for writing CRAM output (see help).</help>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
357 <option value="no" selected="True">No, see help (-output-fmt-option no_ref)</option>
1
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
358 <option value="history">Use a genome/index from the history (-t/-T)</option>
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
359 <option value="cached">Use a built-in genome (-t/-T)</option>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
360 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
361 <when value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
362 <when value="history">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
363 <param name="ref" format="fasta,fasta.gz" optional="true" type="data" label="Reference file"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
364 </when>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
365 <when value="cached">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
366 <param name="ref" type="select" label="Using reference genome">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
367 <options from_data_table="fasta_indexes">
6
ff313de5f7f4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 851f81495c875ac09d936537ffd2b32e6af2c8c5"
iuc
parents: 4
diff changeset
368 <filter column="dbkey" key="dbkey" ref="input" type="data_meta" />
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
369 <validator message="No reference genome is available for the build associated with the selected input dataset" type="no_options" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
370 </options>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
371 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
372 </when>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
373 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
374 </inputs>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
375 <outputs>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
376 <!-- TODO do I need an action for dbkey? -->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
377 <data name="outputsam" format_source="input" from_work_dir="outfile" label="${tool.name} on ${on_string}: filtered alignments">
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
378 <filter>mode['outtype'] == 'header' or mode['output_options']['reads_report_type'] != 'count'</filter>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
379 <change_format>
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
380 <when input="mode.output_options.output_format.oformat" value="sam" format="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
381 <when input="mode.output_options.output_format.oformat" value="bam" format="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
382 <when input="mode.output_options.output_format.oformat" value="cram" format="cram" />
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
383 </change_format>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
384 </data>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
385 <data name="invoutputsam" format_source="input" from_work_dir="inv_outfile" label="${tool.name} on ${on_string}: unfiltered alignments">
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
386 <filter>mode['outtype'] == 'selected_reads' and mode['output_options']['reads_report_type'] != 'count' and mode['output_options']['complementary_output']</filter>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
387 <change_format>
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
388 <when input="mode.output_options.output_format.oformat" value="sam" format="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
389 <when input="mode.output_options.output_format.oformat" value="bam" format="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
390 <when input="mode.output_options.output_format.oformat" value="cram" format="cram" />
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
391 </change_format>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
392 </data>
4
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
393 <data name="outputcnt" format="txt" from_work_dir="outfile" label="${tool.name} on ${on_string}: Counts">
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
394 <filter>mode['outtype'] != 'header' and mode['output_options']['reads_report_type'] == 'count'</filter>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
395 </data>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
396 </outputs>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
397 <tests>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
398 <!-- sam to bam (copied from the sam_to_bam tool) -->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
399 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
400 <param name="input" ftype="sam" value="sam_to_bam_in1.sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
401 <output name="outputsam" ftype="bam" file="sam_to_bam_out1.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
402 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
403 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
404 <param name="input" ftype="sam" dbkey="equCab2" value="sam_to_bam_in1.sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
405 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
406 <param name="addref_select" value="cached" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
407 <param name="ref" value="equCab2chrM" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
408 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
409 <output name="outputsam" ftype="bam" file="sam_to_bam_out2.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
410 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
411 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
412 <param name="input" ftype="sam" value="sam_to_bam_noheader_in2.sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
413 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
414 <param name="addref_select" value="history" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
415 <param name="ref" ftype="fasta" dbkey="equCab2" value="chr_m.fasta" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
416 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
417 <output name="outputsam" ftype="bam" file="sam_to_bam_out3.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
418 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
419 <!-- bam to cram + region filter (adapted from bam_to_cram tool)-->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
420 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
421 <param name="input" value="test.bam" ftype="bam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
422 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
423 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
424 <section name="filter_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
425 <conditional name="cond_region">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
426 <param name="select_region" value="no"/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
427 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
428 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
429 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
430 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
431 <param name="oformat" value="cram" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
432 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
433 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
434 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
435 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
436 <param name="addref_select" value="history" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
437 <param name="ref" value="test.fa" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
438 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
439 <output name="outputsam" file="test.cram" ftype="cram" compare="sim_size" delta="250" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
440 </test>
4
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
441 <!-- count alignments -->
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
442 <test>
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
443 <param name="input" value="test.bam" ftype="bam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
444 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
445 <param name="outtype" value="all_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
446 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
447 <param name="reads_report_type" value="count" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
448 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
449 </conditional>
4
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
450 <output name="outputcnt" file="test_counts.tab" ftype="txt" />
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
451 </test>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
452 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
453 <param name="input" value="test.sam" ftype="sam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
454 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
455 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
456 <section name="filter_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
457 <conditional name="cond_region">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
458 <param name="select_region" value="no"/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
459 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
460 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
461 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
462 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
463 <param name="oformat" value="cram" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
464 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
465 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
466 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
467 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
468 <param name="addref_select" value="history" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
469 <param name="ref" value="test.fa" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
470 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
471 <output name="outputsam" file="test.cram" ftype="cram" compare="sim_size" delta="250" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
472 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
473 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
474 <param name="input" value="test.bam" ftype="bam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
475 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
476 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
477 <section name="filter_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
478 <conditional name="cond_region">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
479 <param name="select_region" value="text"/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
480 <param name="regions" value="CHROMOSOME_I" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
481 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
482 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
483 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
484 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
485 <param name="oformat" value="cram" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
486 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
487 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
488 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
489 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
490 <param name="addref_select" value="history" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
491 <param name="ref" value="test.fa" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
492 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
493 <output name="outputsam" file="test.cram" ftype="cram" compare="sim_size" delta="250" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
494 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
495 <!-- bam to sam + header options (adapted from bam_to_sam tool)-->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
496 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
497 <param ftype="bam" name="input" value="bam_to_sam_in1.bam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
498 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
499 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
500 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
501 <param name="oformat" value="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
502 <param name="with_header" value="true" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
503 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
504 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
505 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
506 <output file="bam_to_sam_out1.sam" ftype="sam" name="outputsam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
507 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
508 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
509 <param ftype="bam" name="input" value="bam_to_sam_in1.bam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
510 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
511 <param name="outtype" value="header" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
512 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
513 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
514 <param name="oformat" value="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
515 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
516 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
517 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
518 <output file="bam_to_sam_out2.sam" ftype="sam" name="outputsam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
519 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
520 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
521 <param ftype="bam" name="input" value="bam_to_sam_in1.bam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
522 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
523 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
524 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
525 <param name="oformat" value="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
526 <param name="with_header" value="false" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
527 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
528 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
529 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
530 <output file="bam_to_sam_out3.sam" ftype="sam" name="outputsam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
531 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
532 <!-- cram to bam + region (adapted from cram_to_bam tool)-->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
533 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
534 <param name="input" value="test.cram" ftype="cram" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
535 <conditional name="addref_cond">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
536 <param name="addref_select" value="history" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
537 <param name="ref" value="test.fa" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
538 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
539 <output name="outputsam" file="test.bam" ftype="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
540 </test>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
541 <test>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
542 <param name="input" value="test.cram" ftype="cram" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
543 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
544 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
545 <section name="filter_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
546 <conditional name="cond_region">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
547 <param name="select_region" value="text"/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
548 <param name="regions" value="CHROMOSOME_I" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
549 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
550 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
551 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
552 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
553 <param name="oformat" value="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
554 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
555 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
556 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
557 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
558 <param name="addref_select" value="history" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
559 <param name="ref" value="test.fa" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
560 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
561 <output name="outputsam" file="test.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
562 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
563 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
564 <param name="input" value="test.cram" ftype="cram" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
565 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
566 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
567 <section name="filter_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
568 <conditional name="cond_region">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
569 <param name="select_region" value="bed" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
570 <param name="bedfile" value="test.bed" ftype="bed" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
571 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
572 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
573 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
574 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
575 <param name="oformat" value="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
576 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
577 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
578 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
579 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
580 <param name="addref_select" value="history" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
581 <param name="ref" value="test.fa" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
582 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
583 <output name="outputsam" file="test.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
584 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
585 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
586 <param name="input" value="test2.cram" dbkey="equCab2" ftype="cram" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
587 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
588 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
589 <section name="filter_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
590 <conditional name="cond_region">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
591 <param name="select_region" value="no"/>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
592 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
593 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
594 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
595 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
596 <param name="oformat" value="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
597 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
598 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
599 </conditional>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
600 <conditional name="addref_cond">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
601 <param name="addref_select" value="cached" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
602 <param name="ref" value="equCab2chrM" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
603 </conditional>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
604 <output name="outputsam" file="sam_to_bam_out2.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
605 </test>
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
606 <!-- sampling options-->
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
607 <test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
608 <param name="input" value="test.sam" ftype="sam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
609 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
610 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
611 <section name="subsample_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
612 <conditional name="subsampling_mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
613 <param name="select_subsample" value="target" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
614 <param name="target" value="2" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
615 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
616 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
617 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
618 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
619 <param name="oformat" value="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
620 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
621 </conditional>
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
622 </conditional>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
623 <output name="outputsam" file="test_ds.sam" ftype="sam" compare="diff" lines_diff="6" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
624 </test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
625 <test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
626 <param name="input" value="test.sam" ftype="sam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
627 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
628 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
629 <section name="subsample_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
630 <conditional name="subsampling_mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
631 <param name="select_subsample" value="target" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
632 <param name="target" value="20" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
633 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
634 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
635 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
636 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
637 <param name="oformat" value="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
638 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
639 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
640 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
641 <output name="outputsam" file="test.sam" ftype="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
642 </test>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
643 <test>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
644 <param name="input" value="test.sam" ftype="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
645 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
646 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
647 <section name="subsample_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
648 <conditional name="subsampling_mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
649 <param name="select_subsample" value="target" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
650 <param name="seed" value="7" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
651 <param name="target" value="2" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
652 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
653 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
654 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
655 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
656 <param name="oformat" value="sam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
657 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
658 </conditional>
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
659 </conditional>
4
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
660 <output name="outputsam" file="test_ds.sam" ftype="sam" compare="diff" lines_diff="6" />
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
661 </test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
662 <test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
663 <param name="input" value="test.bam" ftype="bam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
664 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
665 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
666 <section name="subsample_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
667 <conditional name="subsampling_mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
668 <param name="select_subsample" value="target" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
669 <param name="seed" value="7" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
670 <param name="target" value="2" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
671 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
672 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
673 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
674 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
675 <param name="oformat" value="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
676 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
677 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
678 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
679 <output name="outputsam" file="test_ds.bam" ftype="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
680 </test>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
681 <test>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
682 <param name="input" value="test.bam" ftype="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
683 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
684 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
685 <section name="subsample_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
686 <conditional name="subsampling_mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
687 <param name="select_subsample" value="target" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
688 <param name="seed" value="7" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
689 <param name="target" value="20" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
690 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
691 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
692 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
693 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
694 <param name="oformat" value="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
695 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
696 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
697 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
698 <output name="outputsam" file="test.bam" ftype="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
699 </test>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
700 <test>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
701 <param name="input" value="test.bam" ftype="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
702 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
703 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
704 <section name="subsample_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
705 <conditional name="subsampling_mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
706 <param name="select_subsample" value="fraction" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
707 <param name="seed" value="7" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
708 <param name="factor" value="5" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
709 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
710 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
711 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
712 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
713 <param name="oformat" value="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
714 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
715 </conditional>
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
716 </conditional>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
717 <output name="outputsam" file="test_ds.bam" ftype="bam" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
718 </test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
719 <test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
720 <param name="input" value="test.bam" ftype="bam" />
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
721 <conditional name="mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
722 <param name="outtype" value="selected_reads" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
723 <section name="subsample_config">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
724 <conditional name="subsampling_mode">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
725 <param name="select_subsample" value="fraction" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
726 <param name="seed" value="7" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
727 <param name="factor" value="1.25" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
728 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
729 </section>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
730 <conditional name="output_options">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
731 <param name="reads_report_type" value="dropped" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
732 <conditional name="output_format">
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
733 <param name="oformat" value="bam" />
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
734 </conditional>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
735 </conditional>
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
736 </conditional>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
737 <output name="outputsam" file="test_ds.bam" ftype="bam" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
738 </test>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
739 </tests>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
740 <help>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
741 **What it does**
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
742
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
743 Samtools view can:
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
744
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
745 1. convert between alignment formats (SAM, BAM, CRAM)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
746 2. filter and subsample alignments according to user-specified criteria
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
747 3. count the reads in the input dataset or those retained after filtering
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
748 and subsampling
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
749 4. obtain just the header of the input in any supported format
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
750
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
751 In addition, the tool has (limited) options to modify read records during conversion and/or filtering by:
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
752
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
753 - stripping them of user-specified tags
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
754 - collapsing backward CIGAR operations if they are specified in their CIGAR
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
755 fields
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
756
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
757 With default settings, the tool generates a BAM dataset with the header and
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
758 reads found in the input dataset (which can be in SAM, BAM, or CRAM format).
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
759
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
760 **Alignment format conversion**
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
761
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
762 By changing the *Output format* it is possible to convert an input dataset to
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
763 another format.
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
764 Inputs of type SAM, BAM, and CRAM are accepted and can be converted to each of these formats (alternatively alignment counts can be computed) by selecting the appropriate "Output type".
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
765
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
766 .. class:: infomark
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
767
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
768 The tool allows you to specify a reference sequence. This is required for SAM input with missing @SQ headers (which include sequence names, length, md5, etc) and useful (and sometimes necessary) for CRAM input and output. In the following the use of the reference sequence in the CRAM format is detailed.
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
769 CRAM is (primarily) a reference-based compressed format, i.e. only sequence differences between aligned reads and the reference are stored. As a consequence, the reference that was used during read mapping is needed in order to interpret the alignment records (a checksum stored in the CRAM file is used to verify that only the correct reference sequence can be used). This allows for more space-efficient storage than with BAM format, but such a CRAM file is not usable without its reference.
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
770 It is also possible, however, to use CRAM without a reference with the disadvantage that the reference sequence gets stored then explicitely (as in SAM and BAM).
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
771
1
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
772 The Galaxy tool **currently generates only CRAM without reference sequence**.
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
773
1
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
774 For reference based CRAM input the correct refernce sequence needs to be specified.
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
775
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
776 **Filtering alignments**
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
777
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
778 If you ask for *A filtered/subsampled selection of reads*, the tool will allow
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
779 you to specify filter conditions and/or to choose a subsampling strategy, and
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
780 the output will contain one of the following depending on your choice under
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
781 *What would you like to have reported?*:
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
782
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
783 - All reads retained after filtering and subsampling
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
784 - Reads dropped during filtering and subsampling
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
785
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
786 If instead you want to *split* the input reads based on your criteria and
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
787 obtain *two* datasets, one with the retained and one with the dropped reads, check
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
788 the *Produce extra dataset with dropped/retained reads?* option.
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
789
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
790
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
791 **Filtering by regions**
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
792
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
793 You may specify one or more space-separated region specifications after the input filename to restrict output to only those alignments which overlap the specified region(s). Use of region specifications requires a coordinate-sorted and indexed input file (in BAM or CRAM format).
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
794
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
795 Regions can be specified as: RNAME[:STARTPOS[-ENDPOS]] and all position coordinates are 1-based.
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
796
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
797 .. class:: Warning mark
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
798
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
799 When multiple regions are given, some alignments may be output multiple times if they overlap more than one of the specified regions.
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
800
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
801 Examples of region specifications:
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
802
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
803 ``chr1``
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
804 Output all alignments mapped to the reference sequence named 'chr1' (i.e. @SQ SN:chr1).
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
805
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
806 ``chr2:1000000``
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
807 The region on chr2 beginning at base position 1,000,000 and ending at the end of the chromosome.
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
808
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
809 ``chr3:1000-2000``
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
810 The 1001bp region on chr3 beginning at base position 1,000 and ending at base position 2,000 (including both end positions).
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
811
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
812 ``*``
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
813 Output the unmapped reads at the end of the file. (This does not include any unmapped reads placed on a reference sequence alongside their mapped mates.)
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
814
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
815 ``.``
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
816 Output all alignments. (Mostly unnecessary as not specifying a region at all has the same effect.)
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
817
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
818 **Filtering by quality**
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
819
7
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
820 This filters based on the MAPQ column of the SAM format which gives an estimate about the correct placement of the alignment. Note that aligners do not follow a consistent definition.
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
821 </help>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
822 <expand macro="citations"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
823 </tool>