annotate samtools_view.xml @ 14:5826298f6a73 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 5cb103832529f17e5c72e7f122758c13519fbe5e
author iuc
date Mon, 15 Aug 2022 09:19:43 +0000
parents 0dbf49c414ae
children 6be888be75f9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
5826298f6a73 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 5cb103832529f17e5c72e7f122758c13519fbe5e
iuc
parents: 13
diff changeset
1 <tool id="samtools_view" name="Samtools view" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">
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
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
12
c370440f901e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c5ded4208dd70e88596ddc725795a2401773f02d"
iuc
parents: 11
diff changeset
7 #if $use_ref:
c370440f901e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c5ded4208dd70e88596ddc725795a2401773f02d"
iuc
parents: 11
diff changeset
8 -T "\$reffa"
c370440f901e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c5ded4208dd70e88596ddc725795a2401773f02d"
iuc
parents: 11
diff changeset
9 -t "\$reffai"
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
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">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
23 <param name="oformat" type="select" label="Output format"
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
24 help="Note on BAM output format: The tool will generate coordinate-sorted BAM, i.e., may change the order of reads compared to the input. For BAM input, select 'Same as input' to produce BAM output with the read order retained.">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
25 <option value="input">Same as input</option>
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
26 <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
27 <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
28 <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
29 </param>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
30 <when value="input" />
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
31 <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
32 <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
33 </when>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
34 <when value="bam" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
35 <when value="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
36 </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
37 </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
38 </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
39 <expand macro="requirements">
13
0dbf49c414ae "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1354b1358df89a922c3243f7e27ce789094b8644"
iuc
parents: 12
diff changeset
40 <requirement type="package" version="5.1.0">gawk</requirement>
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>
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
42 <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
43 <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
44 <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
45 @ADDTHREADS@
9
b72793637686 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit d15d26f8596e3220fa7aadc76e8623d42b27280d"
iuc
parents: 8
diff changeset
46 @ADDMEMORY@
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
47 ## 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
48 @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
49 @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
50
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
51 ## determine the output format flag to pass to samtools view
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
52 ## -c for count mode
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
53 ## -b to produce BAM-formatted output
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
54 ## -C to produce CRAM-formatted output
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
55 ## SAM is the default ouput format
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
56 #set $fmtopt = ''
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
57 #if str($mode.output_options.reads_report_type) == 'count':
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
58 #set $fmtopt = '-c'
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
59 #else:
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
60 #if str($mode.output_options.output_format.oformat) == 'bam':
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
61 #set $fmtopt = '-b'
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
62 #elif str($mode.output_options.output_format.oformat) == 'cram':
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
63 #set $fmtopt = '-C'
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
64 #elif str($mode.output_options.output_format.oformat) == 'input':
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
65 #if $input.is_of_type('bam'):
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
66 #set $fmtopt = '-b'
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
67 #elif $input.is_of_type('cram'):
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
68 #set $fmtopt = '-C'
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
69 #else:
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
70 ## input in SAM format, make sure to keep header if present
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
71 #set $fmtopt = '-h'
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
72 #end if
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
73 #end if
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
74 #end if
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
75
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
76 #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
77 ## 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
78 samtools view
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
79 -H $fmtopt -o outfile
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
80 @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
81 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
82 #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
83 ## 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
84 #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
85 #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
86 #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
87 #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
88 #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
89 #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
90 #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
91 #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
92
b01db2684fa5 "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 ## 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
94 #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
95 #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
96 #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
97 #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
98 #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
99
b01db2684fa5 "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 #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
101 #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
102 #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
103 ## 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
104 #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
105 #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
106 #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
107 #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
108 #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
109
b01db2684fa5 "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 $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
111 #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
112 #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
113 #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
114 #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
115 #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
116 #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
117 #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
118 #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
119 #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
120 #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
121 #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
122 #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
123 #end if
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
124 #set $filter = $mode.filter_config.inclusive_filter
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
125 @FLAGS@
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
126 #set $std_filters = $std_filters + " -f %s" % str($flags)
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
127 #set $filter = $mode.filter_config.exclusive_filter
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
128 @FLAGS@
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
129 #set $std_filters = $std_filters + " -F %s" % str($flags)
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
130 #set $filter = $mode.filter_config.exclusive_filter_all
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
131 @FLAGS@
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
132 #set $std_filters = $std_filters + " -G %s" % str($flags)
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
133 #if $mode.filter_config.tag:
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
134 #set $std_filters = $std_filters + " --tag '%s'" % $mode.filter_config.tag
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
135 #end if
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
136 #if $mode.filter_config.qname_file:
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
137 #set std_filters = $std_filters + " --qname-file '%s'" % $mode.filter_config.qname_file
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
138 #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
139 #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
140
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
141 #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
142 ## 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
143 #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
144 #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
145 #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
146 #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
147 #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
148 #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
149
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
150 #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
151 ##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
152 #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
153 ## 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
154 ## 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
155 ## 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
156 ## count the reads to subsample.
14
5826298f6a73 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 5cb103832529f17e5c72e7f122758c13519fbe5e
iuc
parents: 13
diff changeset
157 sample_fragment=`samtools view -c $std_filters infile $reg_filters | awk '{s=\$1} END {frac=s/${mode.subsample_config.subsampling_mode.target}; printf("%.8f\n", frac > 1 ? $seed+1/frac : ".0")}'` &&
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
158 #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
159 ## 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
160 ## an inexpensive call to idxstats.
14
5826298f6a73 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 5cb103832529f17e5c72e7f122758c13519fbe5e
iuc
parents: 13
diff changeset
161 sample_fragment=`samtools idxstats infile | awk '{s+=\$4+\$3} END {frac=s/${mode.subsample_config.subsampling_mode.target}; printf("%.8f\n", frac > 1 ? $seed+1/frac : ".0")}'` &&
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
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
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
164 #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
165
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
166 ## 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
167 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
168 -@ \$addthreads
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
169 $fmtopt
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
170
b01db2684fa5 "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 ## 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
172 $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
173
b01db2684fa5 "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 #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
175 #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
176 ##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
177 -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
178 #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
179 #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
180 -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
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 #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
183
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
184 ## 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
185 #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
186 -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
187 #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
188 ## 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
189 #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
190 ${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
191 #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
192 ${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
193 #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
194 -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
195 #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
196 #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
197 -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
198 #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
199 -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
200 #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
201 #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
202 -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
203 #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
204 -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
205 #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
206 -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
207 #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
208 #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
209
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
210 ##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
211 #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
212 --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
213 #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
214 #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
215
b01db2684fa5 "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 @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
217
b01db2684fa5 "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 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
219
b01db2684fa5 "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 ## 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
221 $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
222
b01db2684fa5 "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 #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
224 ## 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
225 ## 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
226 #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
227 && samtools sort
9
b72793637686 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit d15d26f8596e3220fa7aadc76e8623d42b27280d"
iuc
parents: 8
diff changeset
228 -@ \$addthreads -m \$addmemory"M" -T "\${TMPDIR:-.}"
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
229 -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
230 -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
231 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
232 && 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
233 #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
234 && samtools sort
9
b72793637686 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit d15d26f8596e3220fa7aadc76e8623d42b27280d"
iuc
parents: 8
diff changeset
235 -@ \$addthreads -m \$addmemory"M" -T "\${TMPDIR:-.}"
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
236 -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
237 -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
238 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
239 && 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
240 #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
241 #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
242 #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
243
b01db2684fa5 "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 ##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
245 #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
246 ]]></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
247 <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
248 <!-- 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
249 <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
250 <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
251 <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
252 <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
253 <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
254 <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
255 </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
256 <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
257 <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
258 <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
259 <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
260 <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
261 </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
262 <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
263 <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
264 <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
265 <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
266 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
267 </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
268 </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
269 <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
270 </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
271 </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
272 <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
273 <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
274 <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
275 <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
276 <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
277 <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
278 <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
279 </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
280 <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
281 <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
282 <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
283 </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
284 <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
285 <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
286 </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
287 </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
288 <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
289 <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
290 <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
291 <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
292 <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
293 </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
294 <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
295 <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
296 <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
297 </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
298 <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
299 <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
300 </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
301 </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
302 <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
303 <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
304 <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
305 <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
306 <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
307 </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
308 <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
309 <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
310 </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
311 <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
312 <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
313 </param>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
314 <param argument="--tag" type="text" optional="true" label="Filter by tag" help="Only include reads with tag STR1 and associated value STR2. Write in the format STR1:STR2 (see help for more details)." />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
315 <!-- TODO implement -D -->
11
df20f1fd453f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1d2666cfe206ef538fd811dbccaec2e8f3c6f7f0"
iuc
parents: 10
diff changeset
316 <param argument="--qname-file" format="txt" optional="true" type="data" label="Filter by readnames" help="Only output alignments with readnames that are listed in this file." />
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
317 </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
318 <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
319 <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
320 <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
321 <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
322 <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
323 </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
324 <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
325 <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
326 <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
327 </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
328 <when value="target">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
329 <param name="target" type="integer" optional="False" min="1" value="" label="Target # of reads" help="Sets the approx. target number of reads to subsample." />
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 <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
331 </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
332 </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
333 </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
334 <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
335 <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
336 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
337 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
338 <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
339 <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
340 <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
341 </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
342 <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
343 <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
344 <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
345 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
346 </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
347 <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
348 <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
349 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
350 </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
351 </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
352 <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
353 <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
354 <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
355 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
356 </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
357 <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
358 <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
359 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
360 </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
361 </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
362 <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
363 </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
364 </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
365 <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
366 <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
367 <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
368 <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
369 </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
370 <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
371 <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
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 </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
375 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
376 <expand macro="optional_reference" argument="-t" help="Reference data as fasta(.gz). Required for SAM input without @SQ headers and useful/required for writing CRAM output (see 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
377 </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
378 <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
379 <!-- 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
380 <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
381 <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
382 <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
383 <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
384 <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
385 <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
386 </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
387 </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
388 <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
389 <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
390 <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
391 <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
392 <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
393 <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
394 </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
395 </data>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
396 <data name="outputcnt" format="tabular" 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
397 <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
398 </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
399 </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
400 <tests>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
401 <!-- 1) sam to bam (copied from the sam_to_bam tool) -->
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
402 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
403 <param name="input" ftype="sam" value="in_test_1.sam" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
404 <output name="outputsam" ftype="bam" file="test_1.bam" lines_diff="4" />
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
405 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
406 <!-- 2) -->
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
407 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
408 <param name="input" ftype="sam" dbkey="equCab2" value="in_test_1.sam" />
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
409 <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
410 <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
411 <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
412 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
413 <output name="outputsam" ftype="bam" file="test_2.bam" lines_diff="4" />
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
414 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
415 <!-- 3) -->
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
416 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
417 <param name="input" ftype="sam" value="in_test_3.sam" />
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
418 <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
419 <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
420 <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
421 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
422 <output name="outputsam" ftype="bam" file="test_3.bam" lines_diff="4" />
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
423 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
424 <!-- 4) cram to 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
425 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
426 <param name="input" value="in_test_4.cram" ftype="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
427 <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
428 <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
429 <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
430 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
431 <output name="outputsam" file="test_4.bam" ftype="bam" lines_diff="4" />
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
432 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
433 <!-- 5) within bam operations expected to result in sorting or not -->
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
434 <test >
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
435 <!-- sorted bam should always result in unmodifed output -->
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
436 <param name="input" ftype="bam" value="in_test_5.bam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
437 <assert_command>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
438 <not_has_text text="samtools sort" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
439 </assert_command>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
440 <output name="outputsam" ftype="bam" file="test_5.bam" lines_diff="2"/>
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 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
442 <!-- 6) -->
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
443 <test>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
444 <!-- sorted bam should always result in unmodifed output -->
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
445 <param name="input" ftype="bam" value="in_test_5.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
446 <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
447 <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
448 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
449 <param name="oformat" value="input" />
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
450 </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
451 </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
452 </conditional>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
453 <assert_command>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
454 <not_has_text text="samtools sort" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
455 </assert_command>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
456 <output name="outputsam" ftype="bam" file="test_5.bam" lines_diff="2"/>
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
457 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
458 <!-- 7) -->
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
459 <test>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
460 <!-- qname_sorted.bam should get sorted during "conversion" to bam ... -->
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
461 <param name="input" ftype="qname_sorted.bam" value="in_test_7.bam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
462 <assert_command>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
463 <has_text text="samtools sort" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
464 </assert_command>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
465 <output name="outputsam" ftype="bam" file="test_7.bam" lines_diff="4" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
466 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
467 <!-- 8) -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
468 <test>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
469 <!-- ... but should be emitted unmodifed when using input format -->
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
470 <param name="input" ftype="qname_sorted.bam" value="in_test_7.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
471 <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
472 <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
473 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
474 <param name="oformat" value="input" />
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>
b01db2684fa5 "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 </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
477 </conditional>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
478 <assert_command>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
479 <not_has_text text="samtools sort" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
480 </assert_command>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
481 <output name="outputsam" ftype="qname_sorted.bam" file="test_8.bam" lines_diff="2"/>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
482 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
483 <!-- 9) -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
484 <test>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
485 <!-- unsorted.bam should get sorted during "conversion" to bam ... -->
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
486 <param name="input" ftype="unsorted.bam" value="in_test_7.bam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
487 <assert_command>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
488 <has_text text="samtools sort" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
489 </assert_command>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
490 <output name="outputsam" ftype="bam" file="test_7.bam" lines_diff="4" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
491 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
492 <!-- 10) -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
493 <test>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
494 <!-- ... ... but should be emitted unmodifed when using input format -->
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
495 <param name="input" ftype="unsorted.bam" value="in_test_7.bam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
496 <conditional name="mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
497 <conditional name="output_options">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
498 <conditional name="output_format">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
499 <param name="oformat" value="input" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
500 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
501 </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
502 </conditional>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
503 <assert_command>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
504 <not_has_text text="samtools sort" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
505 </assert_command>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
506 <output name="outputsam" ftype="unsorted.bam" file="test_8.bam" lines_diff="2" />
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
507 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
508 <!-- 11) bam to sam + header options (adapted from bam_to_sam tool)-->
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
509 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
510 <param ftype="bam" name="input" value="in_test_11.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
511 <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
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 <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
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>
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
518 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
519 <output file="test_11.sam" ftype="sam" name="outputsam" lines_diff="2" />
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
520 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
521 <!-- 12) -->
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
522 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
523 <param ftype="bam" name="input" value="in_test_11.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
524 <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
525 <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
526 <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
527 <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
528 <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
529 </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
530 </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
531 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
532 <output file="test_12.sam" ftype="sam" name="outputsam" lines_diff="2" />
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
533 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
534 <!-- 13) -->
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
535 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
536 <param ftype="bam" name="input" value="in_test_11.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
537 <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
538 <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
539 <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
540 <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
541 <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
542 </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
543 </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
544 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
545 <output file="test_13.sam" ftype="sam" name="outputsam" lines_diff="2" />
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
546 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
547 <!-- 14) count alignments -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
548 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
549 <param name="input" value="in_test_14.bam" ftype="bam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
550 <conditional name="mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
551 <param name="outtype" value="all_reads" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
552 <conditional name="output_options">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
553 <param name="reads_report_type" value="count" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
554 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
555 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
556 <output name="outputcnt" file="test_14.tab" ftype="tabular" lines_diff="2" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
557 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
558 <!-- 15) region filters -->
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
559 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
560 <param name="input" value="in_test_15.sam" ftype="sam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
561 <conditional name="mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
562 <param name="outtype" value="selected_reads" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
563 <section name="filter_config">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
564 <conditional name="cond_region">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
565 <param name="select_region" value="no"/>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
566 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
567 </section>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
568 <conditional name="output_options">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
569 <conditional name="output_format">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
570 <param name="oformat" value="cram" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
571 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
572 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
573 </conditional>
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
574 <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
575 <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
576 <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
577 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
578 <output name="outputsam" file="test_15.cram" ftype="cram" compare="sim_size" delta="250" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
579 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
580 <!-- 16) -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
581 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
582 <param name="input" value="in_test_14.bam" ftype="bam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
583 <conditional name="mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
584 <param name="outtype" value="selected_reads" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
585 <section name="filter_config">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
586 <conditional name="cond_region">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
587 <param name="select_region" value="no"/>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
588 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
589 </section>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
590 <conditional name="output_options">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
591 <conditional name="output_format">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
592 <param name="oformat" value="cram" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
593 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
594 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
595 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
596 <conditional name="addref_cond">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
597 <param name="addref_select" value="history" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
598 <param name="ref" value="test.fa" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
599 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
600 <output name="outputsam" file="test_15.cram" ftype="cram" compare="sim_size" delta="250" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
601 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
602 <!-- 17) -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
603 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
604 <param name="input" value="in_test_17.cram" dbkey="equCab2" ftype="cram" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
605 <conditional name="mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
606 <param name="outtype" value="selected_reads" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
607 <section name="filter_config">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
608 <conditional name="cond_region">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
609 <param name="select_region" value="no"/>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
610 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
611 </section>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
612 <conditional name="output_options">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
613 <conditional name="output_format">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
614 <param name="oformat" value="bam" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
615 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
616 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
617 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
618 <conditional name="addref_cond">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
619 <param name="addref_select" value="cached" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
620 <param name="ref" value="equCab2chrM" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
621 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
622 <output name="outputsam" file="test_17.bam" ftype="bam" lines_diff="4" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
623 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
624 <!-- 18) -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
625 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
626 <param name="input" value="in_test_14.bam" ftype="bam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
627 <conditional name="mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
628 <param name="outtype" value="selected_reads" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
629 <section name="filter_config">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
630 <conditional name="cond_region">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
631 <param name="select_region" value="text"/>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
632 <param name="regions" value="CHROMOSOME_I" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
633 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
634 </section>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
635 <conditional name="output_options">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
636 <conditional name="output_format">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
637 <param name="oformat" value="cram" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
638 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
639 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
640 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
641 <conditional name="addref_cond">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
642 <param name="addref_select" value="history" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
643 <param name="ref" value="test.fa" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
644 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
645 <output name="outputsam" file="test_15.cram" ftype="cram" compare="sim_size" delta="250" />
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
646 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
647 <!-- 19) -->
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
648 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
649 <param name="input" value="test_15.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
650 <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
651 <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
652 <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
653 <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
654 <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
655 <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
656 </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
657 </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
658 <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
659 <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
660 <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
661 </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
662 </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
663 </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
664 <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
665 <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
666 <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
667 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
668 <output name="outputsam" file="test_19.bam" ftype="bam" lines_diff="4"/>
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
669 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
670 <!-- 20) -->
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
671 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
672 <param name="input" value="test_15.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
673 <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
674 <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
675 <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
676 <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
677 <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
678 <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
679 </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
680 </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
681 <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
682 <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
683 <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
684 </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
685 </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
686 </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
687 <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
688 <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
689 <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
690 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
691 <output name="outputsam" file="test_20.bam" ftype="bam" lines_diff="4" />
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
692 </test>
14
5826298f6a73 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 5cb103832529f17e5c72e7f122758c13519fbe5e
iuc
parents: 13
diff changeset
693 <!-- 21) sampling options target < total reads -->
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
694 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
695 <param name="input" value="in_test_15.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
696 <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
697 <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
698 <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
699 <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
700 <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
701 <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
702 </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
703 </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
704 <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
705 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
706 <param name="oformat" value="input" />
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
707 </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
708 </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
709 </conditional>
14
5826298f6a73 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 5cb103832529f17e5c72e7f122758c13519fbe5e
iuc
parents: 13
diff changeset
710 <output name="outputsam" file="test_21.sam" ftype="sam" compare="diff" lines_diff="10" />
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
711 </test>
14
5826298f6a73 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 5cb103832529f17e5c72e7f122758c13519fbe5e
iuc
parents: 13
diff changeset
712 <!-- 22) target > total reads -->
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
713 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
714 <param name="input" value="in_test_15.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
715 <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
716 <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
717 <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
718 <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
719 <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
720 <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
721 </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
722 </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
723 <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
724 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
725 <param name="oformat" value="input" />
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
726 </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
727 </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
728 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
729 <output name="outputsam" file="test_22.sam" ftype="sam" lines_diff="2"/>
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
730 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
731 <!-- 23) -->
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
732 <test>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
733 <!-- subsampling SAM input without reads -->
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
734 <param name="input" value="in_test_23.sam" ftype="sam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
735 <conditional name="mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
736 <param name="outtype" value="selected_reads" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
737 <section name="subsample_config">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
738 <conditional name="subsampling_mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
739 <param name="select_subsample" value="target" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
740 <param name="target" value="20" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
741 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
742 </section>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
743 <conditional name="output_options">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
744 <conditional name="output_format">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
745 <param name="oformat" value="input" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
746 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
747 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
748 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
749 <output name="outputsam" file="test_23.sam" ftype="sam" lines_diff="2"/>
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
750 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
751 <!-- 24) -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
752 <test>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
753 <!-- subsampling BAM input without reads -->
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
754 <param name="input" value="in_test_24.bam" ftype="bam" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
755 <conditional name="mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
756 <param name="outtype" value="selected_reads" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
757 <section name="subsample_config">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
758 <conditional name="subsampling_mode">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
759 <param name="select_subsample" value="target" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
760 <param name="target" value="20" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
761 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
762 </section>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
763 <conditional name="output_options">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
764 <conditional name="output_format">
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
765 <param name="oformat" value="input" />
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
766 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
767 </conditional>
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
768 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
769 <output name="outputsam" file="test_24.bam" ftype="bam" lines_diff="2" />
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
770 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
771 <!-- 25) -->
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
772 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
773 <param name="input" value="in_test_15.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
774 <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
775 <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
776 <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
777 <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
778 <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
779 <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
780 <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
781 </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
782 </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
783 <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
784 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
785 <param name="oformat" value="input" />
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
786 </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
787 </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
788 </conditional>
14
5826298f6a73 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 5cb103832529f17e5c72e7f122758c13519fbe5e
iuc
parents: 13
diff changeset
789 <output name="outputsam" file="test_25.sam" ftype="sam" compare="diff" lines_diff="2" />
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
790 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
791 <!-- 26) -->
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
792 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
793 <param name="input" value="in_test_14.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
794 <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
795 <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
796 <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
797 <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
798 <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
799 <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
800 <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
801 </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
802 </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
803 <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
804 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
805 <param name="oformat" value="input" />
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
806 </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
807 </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
808 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
809 <output name="outputsam" file="test_26.bam" ftype="bam" lines_diff="2" />
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
810 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
811 <!-- 27) -->
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
812 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
813 <param name="input" value="in_test_14.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
814 <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
815 <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
816 <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
817 <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
818 <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
819 <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
820 <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
821 </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
822 </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
823 <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
824 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
825 <param name="oformat" value="input" />
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
826 </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
827 </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
828 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
829 <output name="outputsam" file="test_27.bam" ftype="bam" lines_diff="2"/>
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
830 </test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
831 <!-- 28) -->
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
832 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
833 <param name="input" value="in_test_14.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
834 <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
835 <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
836 <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
837 <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
838 <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
839 <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
840 <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
841 </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
842 </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
843 <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
844 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
845 <param name="oformat" value="input" />
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
846 </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
847 </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
848 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
849 <output name="outputsam" file="test_28.bam" ftype="bam" lines_diff="2" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
850 </test>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
851 <!-- 29) -->
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
852 <test>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
853 <param name="input" value="in_test_14.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
854 <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
855 <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
856 <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
857 <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
858 <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
859 <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
860 <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
861 </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
862 </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
863 <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
864 <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
865 <conditional name="output_format">
8
bf328cec6a42 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit e73e642259254253f71335ed1cbd738bb06d3346"
iuc
parents: 7
diff changeset
866 <param name="oformat" value="input" />
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
867 </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
868 </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
869 </conditional>
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
870 <output name="outputsam" file="test_29.bam" ftype="bam" lines_diff="2"/>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
871 </test>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
872 <!-- 30) testing tag filtering -->
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
873 <test>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
874 <param name="input" value="in_test_30.bam" ftype="bam" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
875 <conditional name="mode">
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
876 <param name="outtype" value="selected_reads" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
877 <section name="filter_config">
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
878 <param name="tag" value="XS:-18" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
879 </section>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
880 <conditional name="output_options">
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
881 <conditional name="output_format">
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
882 <param name="oformat" value="bam" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
883 </conditional>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
884 </conditional>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
885 </conditional>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
886 <assert_command>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
887 <has_text text="--tag 'XS:-18'"/>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
888 </assert_command>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
889 <output name="outputsam" file="test_30.bam" ftype="bam" lines_diff="2" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
890 </test>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
891 <!-- 31) testing readname filtering -->
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
892 <test>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
893 <param name="input" value="in_test_30.bam" ftype="bam" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
894 <conditional name="mode">
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
895 <param name="outtype" value="selected_reads" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
896 <section name="filter_config">
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
897 <param name="qname_file" value="readnames.txt" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
898 </section>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
899 <conditional name="output_options">
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
900 <conditional name="output_format">
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
901 <param name="oformat" value="bam" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
902 </conditional>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
903 </conditional>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
904 </conditional>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
905 <assert_command>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
906 <has_text text="--qname-file"/>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
907 </assert_command>
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
908 <output name="outputsam" file="test_31.bam" ftype="bam" lines_diff="2" />
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
909 </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
910 </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
911 <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
912 **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
913
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
914 Samtools view can:
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
915
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
916 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
917 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
918 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
919 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
920 4. obtain just the header of the input in any supported format
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
921
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
922 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
923
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
924 - 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
925 - 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
926 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
927
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
928 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
929 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
930
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
931 **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
932
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
933 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
934 another format.
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
935 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".
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
936
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
937 .. class:: infomark
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
938
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
939 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
940 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
941 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
942
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
943 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
944
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
945 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
946
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
947 **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
948
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
949 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
950 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
951 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
952 *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
953
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
954 - 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
955 - 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
956
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
957 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
958 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
959 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
960
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
961
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
962 **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
963
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
964 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
965
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
966 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
967
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
968 .. 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
969
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
970 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
971
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
972 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
973
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
974 ``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
975 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
976
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
977 ``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
978 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
979
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
980 ``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
981 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
982
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
983 ``*``
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
984 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
985
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
986 ``.``
b01db2684fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 6692949aa694102abb64c67d46196a822fcb61bf"
iuc
parents: 6
diff changeset
987 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
988
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
989 **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
990
10
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
991 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.
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
992
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
993 ## Filtering by Tag **
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
994
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
995 This filter allows to select reads based on tool or user specific tags, e.g., XS:i:-18 the alignment score tag of bowtie.
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
996 Thus to filter for a specific value of the tag you need the format STR1:STR2, e.g., XS:-18 to filter reads with an aligment score of -18.
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
997 You can also just write STR1 without the value STR2 hence the filter selects all reads with the tag STR1, e.g., XS.
350bbc5c2ffd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 0f75269223c0821c6c82acf98fde947d0f816f2b"
iuc
parents: 9
diff changeset
998
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
999 </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
1000 <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
1001 </tool>