annotate samtools_view.xml @ 6:ff313de5f7f4 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 851f81495c875ac09d936537ffd2b32e6af2c8c5"
author iuc
date Thu, 17 Oct 2019 02:25:30 -0400
parents fdc58a0cc1d4
children b01db2684fa5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
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
1 <tool id="samtools_view" name="Samtools view" version="@TOOL_VERSION@">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
2 <description>reformat, filter, or subsample</description>
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>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
4 <import>macros.xml</import>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
5 </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
6 <expand macro="requirements">
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
7 <requirement type="package">gawk</requirement>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
8 </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
9 <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
10 <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
11 <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
12 @ADDTHREADS@
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
13 ## 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
14 @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
15 @PREPARE_IDX@
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
16 #if $cond_subsample.select_subsample == 'target':
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
17 ##this must be done before the main command because we don't know the total # reads until execution time
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
18 #if str($cond_subsample.seed) == '':
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
19 #set seed_expr="int(rand() * 32768)"
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
20 #else
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
21 #set seed_expr=$cond_subsample.seed
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
22 #end if
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
23 #if $input.is_of_type('sam'):
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
24 sample_fragment=`samtools view -c infile | awk '{s=\$1} END {frac=$cond_subsample.target/s; print(frac < 1 ? "-s " $seed_expr+frac : "")}'` &&
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
25 #else
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
26 sample_fragment=`samtools idxstats infile | awk '{s+=\$4+\$3} END {frac=$cond_subsample.target/s; print(frac < 1 ? "-s " $seed_expr+frac : "")}'` &&
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
27 #end if
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
28 #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
29 ##call samtools view
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
30 samtools view
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
31 -@ \$addthreads
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
32
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
33 #if $outtype == 'count':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
34 -c
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
35 #elif $outtype == 'bam':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
36 -b
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
37 #elif $outtype == 'cram':
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 -C
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
39 #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
40
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
41 ## filter options (regions filter is the last parameter)
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 #if $cond_filter.select_filter == 'yes':
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 #if $cond_filter.cond_region.select_region == 'bed' and str( $cond_filter.cond_region.bedfile ) != 'None'
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
44 -L '$cond_filter.cond_region.bedfile'
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
45 #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
46 #if $cond_filter.cond_rg.select_rg == 'text':
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 -r '$cond_filter.cond_rg.readgr'
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 #else if $cond_filter.cond_rg.select_rg == 'file':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
49 -R '$cond_filter.cond_rg.rgfile'
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 #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
51 #if str($cond_filter.quality) != '' and int( $cond_filter.quality ) > 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
52 -q $cond_filter.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
53 #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
54 #if str( $cond_filter.library ) != ''
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
55 -l '$cond_filter.library'
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
56 #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
57 #if str( $cond_filter.cigarcons ) != ''
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
58 -m $cond_filter.cigarcons
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
59 #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
60 #if str($cond_filter.inclusive_filter) != 'None':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
61 #set $filter = $cond_filter.inclusive_filter
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
62 @FLAGS@
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
63 -f $flags
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
64 #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
65 #if str($cond_filter.exclusive_filter) != 'None':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
66 #set $filter = $cond_filter.exclusive_filter
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
67 @FLAGS@
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
68 -F $flags
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
69 #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
70 #if str($cond_filter.exclusive_filter_all) != 'None':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
71 #set $filter = $cond_filter.exclusive_filter_all
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
72 @FLAGS@
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
73 -G $flags
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
74 #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
75 #for $i, $s in enumerate($cond_filter.readtags)
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
76 -x '${s.readtag}'
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
77 #end for
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
78 #end if
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
79 #if $cond_subsample.select_subsample != 'no':
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
80 #if $cond_subsample.select_subsample == "target":
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
81 ##this is calculated at execution time before the main samtools command
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
82 "\${sample_fragment}"
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
83 #else
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
84 #set fraction=str($cond_subsample.fraction).split('.')[1]
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
85 #if str($cond_subsample.seed) == '':
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
86 -s "\${RANDOM}".$fraction
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
87 #else
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
88 -s $cond_subsample.seed.$fraction
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
89 #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
90 #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
91 #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
92
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
93 ## output options
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
94 $adv_output.header
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
95 $adv_output.collapsecigar
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
96 #if $adv_output.outputpassing == 'yes'
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
97 -U inv_outfile
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
98 #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
99 -o outfile
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
100
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
101 ## additional 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
102 #if $reffa!=None:
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
103 -T '$reffa'
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
104 -t '$reffai'
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
105 #end if
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
106
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
107 ##currently reference based CRAM is disabled (see https://github.com/galaxyproject/tools-iuc/pull/1963)
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
108 #if $outtype=='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
109 --output-fmt-option no_ref
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
110 #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
111
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
112 infile
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
113
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
114 ## region filter need to be at the end
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
115 #if $cond_filter.select_filter == 'yes' and $cond_filter.cond_region.select_region == 'text':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
116 '$cond_filter.cond_region.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
117 #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
118
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
119 ## if data is converted from an unsorted file (SAM, CRAM, or unsorted BAM) to BAM
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
120 ## then sort the output by coordinate,
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
121 #if not $input.is_of_type('bam') and $outtype == 'bam':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
122 && samtools sort
6
ff313de5f7f4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 851f81495c875ac09d936537ffd2b32e6af2c8c5"
iuc
parents: 4
diff changeset
123 -@ \$addthreads -m \${GALAXY_MEMORY_MB:-768}M -T "\${TMPDIR:-.}"
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
124 -O bam
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
125 -o 'tmpsam'
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
126 outfile
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
127 && mv tmpsam outfile
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
128 #if $adv_output.outputpassing == 'yes':
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
129 && samtools sort
6
ff313de5f7f4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 851f81495c875ac09d936537ffd2b32e6af2c8c5"
iuc
parents: 4
diff changeset
130 -@ \$addthreads -m \${GALAXY_MEMORY_MB:-768}M -T "\${TMPDIR:-.}"
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
131 -O bam
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
132 -o 'tmpsam'
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
133 inv_outfile
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
134 && mv tmpsam inv_outfile
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
135 #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
136 #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
137 ]]></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
138 <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
139 <!-- 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
140 <param name="input" format="sam,unsorted.bam,cram" type="data" label="SAM/BAM/CRAM data set" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
141 <param name="outtype" type="select" argument="-b/-C/-c" label="Output type">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
142 <help>Select output type. In case of counts only the total number of alignments is returned. All filters are taken into account</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
143 <option value="sam">SAM</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
144 <option value="bam">BAM (-b)</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
145 <option value="cram">CRAM (-C)</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
146 <option value="count">Count of alignments (-c)</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
147 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
148 <conditional name="cond_filter">
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 <param name="select_filter" type="select" label="Filter alignment">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
150 <option value="yes">Yes</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
151 <option value="no" selected="True">No</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
152 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
153 <when value="yes">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
154 <conditional name="cond_region">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
155 <param name="select_region" type="select" label="Filter 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
156 <option value="no" selected="True">No</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
157 <option value="text">Manualy specify regions</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
158 <option value="bed">Regions from BED file</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
159 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
160 <when value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
161 <when value="text">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
162 <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)."/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
163 </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
164 <when value="bed">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
165 <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." />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
166 </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
167 </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
168 <conditional name="cond_rg">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
169 <param name="select_rg" type="select" label="Filter by readgroup">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
170 <option value="no" selected="True">No</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
171 <option value="text">Single read group </option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
172 <option value="file">Read groups from file</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
173 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
174 <when value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
175 <when value="text">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
176 <param name="readgr" type="text" argument="-r" label="Filter by read group" help="Only output alignments in read group." />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
177 </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
178 <when value="file">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
179 <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." />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
180 </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
181 </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
182 <param name="quality" type="integer" argument="-q" optional="true" min="0" label="Filter by quality" help="Skip alignments with MAPQ smaller than INT." />
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 <param name="library" type="text" argument="-l" optional="true" label="Filter by library" help="Only output alignments in library STR" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
184 <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." />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
185 <param name="inclusive_filter" argument="-f" type="select" multiple="True" label="Require that these flags are set">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
186 <expand macro="flag_options" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
187 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
188 <param name="exclusive_filter" argument="-F" type="select" multiple="True" label="Exclude reads with any of the following flags set">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
189 <expand macro="flag_options" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
190 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
191 <param name="exclusive_filter_all" argument="-G" type="select" multiple="True" label="Exclude reads with all of the following flags set">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
192 <expand macro="flag_options" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
193 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
194 <!-- TODO could also make this a text field (comma/space separated) -->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
195 <repeat name="readtags" title="Filter by read tags">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
196 <param name="readtag" type="text" argument="-x" label="Filter by read tag" help="Read tag to exclude from output."/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
197 </repeat>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
198 </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
199 <when value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
200 </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
201 <conditional name="cond_subsample">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
202 <param name="select_subsample" type="select" argument="-s" label="Subsample alignment">
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
203 <option value="fraction">Specify a fraction to keep</option>
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
204 <option value="target">Specify a target # of reads</option>
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
205 <option value="no" selected="True">No downsampling</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
206 </param>
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
207 <when value="fraction">
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
208 <param name="fraction" type="float" optional="False" value="0.5" min="0" max="1" label="Subsampling fraction" help="sets the fraction of templates/pairs to subsample." />
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
209 <expand macro="seed_input" />
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
210 </when>
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
211 <when value='target'>
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
212 <param name="target" type="integer" optional="False" value="" min="0" label="Target # of reads" help="sets the target number of reads to subsample." />
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
213 <expand macro="seed_input" />
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 </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
215 <when value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
216 </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
217 <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
218 <param name="addref_select" type="select" label="Reference data">
1
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
219 <help>Reference data as fasta(.gz). Required for SAM input without @SQ headers and useful/required for writing CRAM output (see help).</help>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
220 <option value="no" selected="True">No, see help (-output-fmt-option no_ref)</option>
1
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
221 <option value="history">Use a genome/index from the history (-t/-T)</option>
6ade12d94f9a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit c7bb87a32997810fd9f28572fc5af628c8c4ffa3
iuc
parents: 0
diff changeset
222 <option value="cached">Use a built-in genome (-t/-T)</option>
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
223 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
224 <when value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
225 <when value="history">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
226 <param name="ref" format="fasta,fasta.gz" optional="true" type="data" label="Reference file"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
227 </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
228 <when value="cached">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
229 <param name="ref" type="select" label="Using reference genome">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
230 <options from_data_table="fasta_indexes">
6
ff313de5f7f4 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 851f81495c875ac09d936537ffd2b32e6af2c8c5"
iuc
parents: 4
diff changeset
231 <filter column="dbkey" key="dbkey" ref="input" type="data_meta" />
0
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
232 <validator message="No reference genome is available for the build associated with the selected input dataset" type="no_options" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
233 </options>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
234 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
235 </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
236 </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
237 <section name="adv_output" title="Output Options" expanded="false">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
238 <param name="header" type="select" argument="-h/-H" label="Header options">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
239 <option value="-h" selected="True">Include header in SAM output (-h)</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
240 <option value="-H">Return header only (-H)</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
241 <option value="">Exclude header</option>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
242 </param>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
243 <param name="outputpassing" type="boolean" argument="-U" truevalue="yes" falsevalue="no" checked="false" label="Output alignments not passing the filter" help="Write alignments that are not selected by the various filter options to an extra data set. When this option is used, all alignments (or all alignments intersecting the regions specified) are written to either the output data set or this extra output data set, but never both." />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
244 <param name="collapsecigar" type="boolean" argument="-B" truevalue="-B" falsevalue="" checked="false" label="Collapse backward CIGAR operation" help="Collapse the backward CIGAR operation." />
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 </section>
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 </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
247 <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
248 <!-- 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
249 <data name="outputsam" format_source="input" from_work_dir="outfile" label="${tool.name} on ${on_string}: filtered 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
250 <filter>outtype != 'count'</filter>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
251 <!-- TODO is change_format deprecated? how can I modify the type for the different bam types? -->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
252 <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
253 <when input="outtype" value="sam" format="sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
254 <when input="outtype" value="bam" format="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
255 <when input="outtype" value="cram" format="cram" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
256 </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
257 </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
258 <data name="invoutputsam" format_source="input" from_work_dir="inv_outfile" label="${tool.name} on ${on_string}: unfiltered 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
259 <filter>adv_output['outputpassing'] == 'yes' and outtype != 'count'</filter>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
260 <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
261 <when input="outtype" value="sam" format="sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
262 <when input="outtype" value="bam" format="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
263 <when input="outtype" value="cram" format="cram" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
264 </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
265 </data>
4
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
266 <data name="outputcnt" format="txt" from_work_dir="outfile" label="${tool.name} on ${on_string}: Counts">
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
267 <filter>outtype == 'count'</filter>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
268 </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
269 </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
270 <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
271 <!-- sam to bam (copied from the sam_to_bam tool) -->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
272 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
273 <param name="input" ftype="sam" value="sam_to_bam_in1.sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
274 <param name="outtype" value="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
275 <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
276 <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
277 <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
278 </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
279 <output name="outputsam" ftype="bam" file="sam_to_bam_out1.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
280 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
281 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
282 <param name="input" ftype="sam" dbkey="equCab2" value="sam_to_bam_in1.sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
283 <param name="outtype" value="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
284 <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
285 <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
286 <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
287 </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
288 <output name="outputsam" ftype="bam" file="sam_to_bam_out2.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
289 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
290 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
291 <param name="input" ftype="sam" value="sam_to_bam_noheader_in2.sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
292 <param name="outtype" value="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
293 <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
294 <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
295 <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
296 </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
297 <output name="outputsam" ftype="bam" file="sam_to_bam_out3.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
298 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
299 <!-- bam to cram + region filter (adapted from bam_to_cram tool)-->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
300 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
301 <param name="input" value="test.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
302 <param name="outtype" value="cram" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
303 <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
304 <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
305 <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
306 </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
307 <conditional name="cond_filter">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
308 <param name="select_filter" value="yes" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
309 <conditional name="cond_region">
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 name="select_region" value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
311 </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
312 </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
313 <output name="outputsam" file="test.cram" ftype="cram" compare="sim_size" delta="250" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
314 </test>
4
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
315 <!-- count alignments -->
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
316 <test>
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
317 <param name="input" value="test.bam" ftype="bam" />
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
318 <param name="outtype" value="count" />
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
319 <output name="outputcnt" file="test_counts.tab" ftype="txt" />
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
320 </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
321 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
322 <param name="input" value="test.sam" ftype="sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
323 <param name="outtype" value="cram" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
324 <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
325 <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
326 <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
327 </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
328 <conditional name="cond_filter">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
329 <param name="select_filter" value="yes" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
330 <conditional name="cond_region">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
331 <param name="select_region" value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
332 </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
333 </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
334 <output name="outputsam" file="test.cram" ftype="cram" compare="sim_size" delta="250" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
335 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
336 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
337 <param name="input" value="test.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
338 <param name="outtype" value="cram" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
339 <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
340 <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
341 <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
342 </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
343 <conditional name="cond_filter">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
344 <param name="select_filter" value="yes" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
345 <conditional name="cond_region">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
346 <param name="select_region" value="text"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
347 <param name="regions" value="CHROMOSOME_I" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
348 </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
349 </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
350 <output name="outputsam" file="test.cram" ftype="cram" compare="sim_size" delta="250" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
351 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
352 <!-- bam to sam + header options (adapted from bam_to_sam tool)-->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
353 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
354 <param ftype="bam" name="input" value="bam_to_sam_in1.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
355 <param name="outtype" value="sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
356 <param name="header" value="-h" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
357 <output file="bam_to_sam_out1.sam" ftype="sam" name="outputsam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
358 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
359 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
360 <param ftype="bam" name="input" value="bam_to_sam_in1.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
361 <param name="outtype" value="sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
362 <param name="header" value="-H" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
363 <output file="bam_to_sam_out2.sam" ftype="sam" name="outputsam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
364 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
365 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
366 <param ftype="bam" name="input" value="bam_to_sam_in1.bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
367 <param name="outtype" value="sam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
368 <param name="header" value="" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
369 <output file="bam_to_sam_out3.sam" ftype="sam" name="outputsam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
370 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
371 <!-- cram to bam + region (adapted from cram_to_bam tool)-->
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
372 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
373 <param name="input" value="test.cram" ftype="cram" />
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 <param name="outtype" value="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
375 <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
376 <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
377 <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
378 </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
379 <output name="outputsam" file="test.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
380 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
381 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
382 <param name="input" value="test.cram" ftype="cram" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
383 <param name="outtype" value="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
384 <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
385 <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
386 <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
387 </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
388 <param name="target_region" value="region" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
389 <param name="region_string" value="CHROMOSOME_I" />
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 <output name="outputsam" file="test.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
391 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
392 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
393 <param name="input" value="test.cram" ftype="cram" />
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 <param name="outtype" value="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
395 <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
396 <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
397 <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
398 </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
399 <param name="target_region" value="regions_bed_file" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
400 <param name="regions_bed_file" value="test.bed" ftype="bed" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
401
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 <output name="outputsam" file="test.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
403 </test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
404 <test>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
405 <param name="input" value="test2.cram" dbkey="equCab2" ftype="cram" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
406 <param name="outtype" value="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
407 <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
408 <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
409 <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
410 </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
411 <conditional name="cond_region">
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
412 <param name="select_region" value="no"/>
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
413 </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
414 <output name="outputsam" file="sam_to_bam_out2.bam" ftype="bam" />
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
415 </test>
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
416 <!-- sampling options-->
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
417 <test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
418 <param name="input" value="test.sam" ftype="sam" />
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
419 <param name="outtype" value="sam" />
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
420 <conditional name="cond_subsample">
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
421 <param name="select_subsample" value="target" />
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
422 <param name="target" value="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
423 </conditional>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
424 <output name="outputsam" file="test_ds.sam" ftype="sam" compare="diff" lines_diff="6" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
425 </test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
426 <test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
427 <param name="input" value="test.sam" ftype="sam" />
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
428 <param name="outtype" value="sam" />
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
429 <conditional name="cond_subsample">
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
430 <param name="select_subsample" value="target" />
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
431 <param name="seed" value="7" />
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
432 <param name="target" value="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
433 </conditional>
4
fdc58a0cc1d4 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 640b53919bfc0ae4b895451218e919a52ac14b9d
iuc
parents: 2
diff changeset
434 <output name="outputsam" file="test_ds.sam" ftype="sam" compare="diff" lines_diff="6" />
2
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
435 </test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
436 <test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
437 <param name="input" value="test.bam" ftype="bam" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
438 <param name="outtype" value="bam" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
439 <conditional name="cond_subsample">
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
440 <param name="select_subsample" value="target" />
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
441 <param name="seed" value="7" />
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
442 <param name="target" value="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
443 </conditional>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
444 <output name="outputsam" file="test_ds.bam" ftype="bam" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
445 </test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
446 <test>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
447 <param name="input" value="test.bam" ftype="bam" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
448 <param name="outtype" value="bam" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
449 <conditional name="cond_subsample">
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
450 <param name="select_subsample" value="fraction" />
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
451 <param name="seed" value="7" />
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
452 <param name="fraction" value=".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
453 </conditional>
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
454 <output name="outputsam" file="test_ds.bam" ftype="bam" />
02afb5ea2fce planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit 1047dc0e36a1c28492d7cd1e860c89ecf3ba30c8
iuc
parents: 1
diff changeset
455 </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
456 </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
457 <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
458 **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
459
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
460 Samtools view can:
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
461
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
462 1. filter alignments according to various criteria
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
463 2. convert between alignment formats (SAM, BAM, CRAM)
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
464
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
465 With no options or regions specified, prints all alignments in the specified input alignment file (in SAM, BAM, or CRAM format) to standard output in SAM format (with no header).
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
466
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
467 **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
468
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
469 Inputs of type SAM, BAM, and CRAM are accepted and can be converted to each of these formats (alternatively alignment counts can be computed) by selecting the appropriate "Output type".
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
470
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
471 .. class:: infomark
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
472
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
473 samtools view allows 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 reference sequence in the CRAM format is detailed.
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
474 CRAM is (intended as a primarily) a reference-based compressed format, i.e. only differences between the stored sequences and the reference are stored. As a consequence the reference that was used to generate the alignemnts is always needed in order to interpret the alignments (a checksum stored in the CRAM file is used to verify that the only the correct sequence can be used), i.e. the CRAM file on its own is not useful per default. This allows for a more space efficient storage compared to BAM.
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
475 But it is also possible to use CRAM without a reference with the disadvantage that the reference is stored 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
476
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
477 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
478
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
479 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
480
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
481 **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
482
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
483 samtools view allows to filter alignements based on various criteria, i.e. the output will contain only alignemnts matching all criteria (an additional output containing the remaining alignments can be created additionally, see "Output alignments not passing the filter" in "output options"): e.g. by regions (see below), alignment quality (see below), and tags or flags set in the 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
484
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
485
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
486
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
487 **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
488
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
489 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
490
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
491 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
492
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
493 Important note: when multiple regions are given, some alignments may be output multiple times if they overlap more than one of the specified 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
494
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
495 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
496
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
497 - chr1 Output all alignments mapped to the reference sequence named 'chr1' (i.e. @SQ SN:chr1).
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
498 - chr2:1000000 The region on chr2 beginning at base position 1,000,000 and ending at the end of the chromosome.
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
499 - chr3:1000-2000 The 1001bp region on chr3 beginning at base position 1,000 and ending at base position 2,000 (including both end positions).
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
500 - '*' 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.)
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
501 - . Output all alignments. (Mostly unnecessary as not specifying a region at all has the same effect.)
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
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
503 **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
504
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
505 This filters based on the MAPQ column of the SAM format which gives an estimate about the correct placement of the alignemnt. Note that aligners do not follow a consistent definition.
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
506
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 The -x, -B, and -s options modify the data which is contained in each alignment.
00d1f08bdcdc planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_view commit aa97817f89e4ac6e7bb2326a51ecbc91830de5df
iuc
parents:
diff changeset
508 </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
509 <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
510 </tool>