annotate samtools_stats.xml @ 2:24c5d43cb545 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
author iuc
date Tue, 09 May 2017 11:19:01 -0400
parents 0d71d9467847
children 95a7ddf617e7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
1 <tool id="samtools_stats" name="Stats" version="2.0.1">
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
2 <description>generate statistics for BAM dataset</description>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
3 <macros>
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
4 <import>macros.xml</import>
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
5 </macros>
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
6 <expand macro="requirements"/>
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
7 <expand macro="stdio"/>
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
8 <expand macro="version_command"/>
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
9 <command><![CDATA[
0d71d9467847 Uploaded
devteam
parents:
diff changeset
10 #if $use_reference.use_ref_selector == "yes":
0d71d9467847 Uploaded
devteam
parents:
diff changeset
11 #if $use_reference.reference_source.reference_source_selector == "history":
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
12 ln -s '${use_reference.reference_source.ref_file}' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
13 samtools faidx `basename '${use_reference.reference_source.ref_file}'` &&
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
14 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
15 #end if
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
16
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
17 samtools stats
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
18 '${input_file}'
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
19 --coverage ${coverage_min},${coverage_max},${coverage_step}
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
20 ${remove_dups}
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
21
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
22 #if str( $filter_by_flags.filter_flags ) == "filter":
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
23 #if $filter_by_flags.require_flags:
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
24 --required-flag ${sum([int(flag) for flag in str($filter_by_flags.require_flags).split(',')])}
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
25 #end if
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
26 #if $filter_by_flags.exclude_flags:
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
27 --filtering-flag ${sum([int(flag) for flag in str($filter_by_flags.exclude_flags).split(',')])}
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
28 #end if
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
29 #end if
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
30
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
31 --GC-depth ${gc_depth}
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
32 --insert-size ${insert_size}
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
33
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
34 ## The code below is commented out because using -I/--id options causes the following exception
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
35 ## Samtools-htslib: init_group_id() header parsing not yet implemented
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
36 ##if str($read_group) != "":
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
37 ## -I "${read_group}"
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
38 ##end if
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
39
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
40 #if str($read_length):
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
41 --read-length ${read_length}
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
42 #end if
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
43
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
44 --most-inserts ${most_inserts}
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
45 --trim-quality ${trim_quality}
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
46
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
47 #if $use_reference.use_ref_selector == "yes":
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
48 #if $use_reference.reference_source.reference_source_selector != "history":
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
49 --ref-seq '${use_reference.reference_source.ref_file.fields.path}'
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
50 #else:
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
51 --ref-seq '${use_reference.reference_source.ref_file}'
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
52 #end if
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
53 #end if
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
54 > '${output}'
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
55
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
56 #if $split_output.split_output_selector == "yes":
0d71d9467847 Uploaded
devteam
parents:
diff changeset
57 #set outputs_to_split = str($split_output.generate_tables).split(',')
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
58 && mkdir split &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
59 echo ${split_output.generate_tables}
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
60
0d71d9467847 Uploaded
devteam
parents:
diff changeset
61 #if 'sn' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
62 && echo "# Summary Numbers" > 'split/Summary numbers.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
63 echo "" >> 'split/Summary numbers.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
64 if grep -q ^SN '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
65 grep ^SN '${output}' | cut -f 2- >> 'split/Summary numbers.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
66 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
67 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
68
0d71d9467847 Uploaded
devteam
parents:
diff changeset
69 #if 'ffq' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
70 && echo "# Columns correspond to qualities and rows to cycles. First column is the cycle number\n" > 'split/First Fragment Qualities.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
71 if grep -q ^FFQ '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
72 grep ^FFQ '${output}' | cut -f 2- >> 'split/First Fragment Qualities.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
73 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
74 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
75
0d71d9467847 Uploaded
devteam
parents:
diff changeset
76 #if 'lfq' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
77 && echo "# Columns correspond to qualities and rows to cycles. First column is the cycle number" > 'split/Last Fragment Qualities.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
78 if grep -q ^LFQ '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
79 grep ^LFQ '${output}' | cut -f 2- >> 'split/Last Fragment Qualities.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
80 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
81 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
82
0d71d9467847 Uploaded
devteam
parents:
diff changeset
83 #if 'mpc' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
84 && echo "# Columns correspond to qualities, rows to cycles. First column is the cycle number, second is the number of N's and the rest is the number of mismatches" > 'split/Mismatches per cycle.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
85 if grep -q ^MPC '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
86 grep ^MPC '${output}' | cut -f 2- >> 'split/Mismatches per cycle.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
87 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
88 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
89
0d71d9467847 Uploaded
devteam
parents:
diff changeset
90 #if 'gcf' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
91 && echo "# GC Content of first fragments" > 'split/GC Content of first fragments.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
92 if grep -q ^GCF '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
93 grep ^GCF '${output}' | cut -f 2- >> 'split/GC Content of first fragments.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
94 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
95 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
96
0d71d9467847 Uploaded
devteam
parents:
diff changeset
97 #if 'gcl' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
98 && echo "# GC Content of last fragments" > 'split/GC Content of last fragments.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
99 if grep -q ^GCL '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
100 grep ^GCL '${output}' | cut -f 2- >> 'split/GC Content of last fragments.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
101 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
102 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
103
0d71d9467847 Uploaded
devteam
parents:
diff changeset
104 #if 'gcc' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
105 && echo "# ACGT content per cycle. The columns are: cycle, and A,C,G,T counts (percent)" > 'split/ACGT content per cycle.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
106 if grep -q ^GCC '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
107 grep ^GCC '${output}' | cut -f 2- >> 'split/ACGT content per cycle.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
108 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
109 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
110
0d71d9467847 Uploaded
devteam
parents:
diff changeset
111 #if 'is' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
112 && echo "# Insert sizes. The columns are: insert size, pairs total, inward oriented pairs, outward oriented pairs, other pairs" > 'split/Insert sizes.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
113 if grep -q ^IS '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
114 grep ^IS '${output}' | cut -f 2- >> 'split/Insert sizes.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
115 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
116 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
117
0d71d9467847 Uploaded
devteam
parents:
diff changeset
118 #if 'rl' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
119 && echo "# Read lengths. The columns are: read length, count" > 'split/Read lengths.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
120 if grep -q ^RL '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
121 grep ^RL '${output}' | cut -f 2- >> 'split/Read lengths.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
122 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
123 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
124
0d71d9467847 Uploaded
devteam
parents:
diff changeset
125 #if 'id' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
126 && echo "# Indel distribution. The columns are: length, number of insertions, number of deletions" > 'split/Indel distribution.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
127 if grep -q ^ID '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
128 grep ^ID '${output}' | cut -f 2- >> 'split/Indel distribution.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
129 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
130 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
131
0d71d9467847 Uploaded
devteam
parents:
diff changeset
132 #if 'ic' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
133 && echo "# Indels per cycle. The columns are: cycle, number of insertions (fwd), .. (rev) , number of deletions (fwd), .. (rev)" > 'split/Indels per cycle.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
134 if grep -q ^IC '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
135 grep ^IC '${output}' | cut -f 2- >> 'split/Indels per cycle.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
136 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
137 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
138
0d71d9467847 Uploaded
devteam
parents:
diff changeset
139 #if 'cov' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
140 && echo "# Coverage distribution" > 'split/Coverage distribution.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
141 if grep -q ^COV '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
142 grep ^COV '${output}' | cut -f 2- >> 'split/Coverage distribution.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
143 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
144 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
145
0d71d9467847 Uploaded
devteam
parents:
diff changeset
146 #if 'gcd' in $outputs_to_split:
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
147 && echo "# GC-depth. The columns are: GC%, unique sequence percentiles, 10th, 25th, 50th, 75th and 90th depth percentile" > 'split/GC depth.tab' &&
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
148 if grep -q ^GCD '${output}'; then
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
149 grep ^GCD '${output}' | cut -f 2- >> 'split/GC depth.tab';
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
150 fi
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
151 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
152 #end if
0d71d9467847 Uploaded
devteam
parents:
diff changeset
153 ]]></command>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
154 <inputs>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
155 <param name="input_file" type="data" format="sam,bam" label="BAM file" />
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
156 <param name="coverage_min" type="integer" value="1" label="Minimum coverage" help="Minimum coverage" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
157 <param name="coverage_max" type="integer" value="1000" label="Maximum coverage" help="Maximum coverage" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
158 <param name="coverage_step" type="integer" value="1" label="Coverage step" help="Step value for coverage" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
159 <param name="remove_dups" argument="--remove-dups" type="boolean" truevalue="--remove-dups" falsevalue="" checked="False"
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
160 label="Exclude reads marked as duplicates" />
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
161 <conditional name="split_output">
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
162 <param name="split_output_selector" type="select" label="Output" help="Select between one single output or separate outputs for each statistics">
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
163 <option value="no" selected="True">One single summary file</option>
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
164 <option value="yes">Separate datasets for each statistic</option>
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
165 </param>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
166 <when value="no" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
167 <when value="yes">
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
168 <param name="generate_tables" type="select" display="checkboxes" multiple="True" label="Desired output files">
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
169 <option value="sn">Summary numbers</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
170 <option value="ffq">First Fragment Qualities</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
171 <option value="lfq">Last Fragment Qualities</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
172 <option value="mpc">Mismatches per cycle</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
173 <option value="gcf">GC Content of first fragments</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
174 <option value="gcl">GC Content of last fragments</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
175 <option value="gcc">ACGT content per cycle</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
176 <option value="is">Insert sizes</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
177 <option value="rl">Read lengths</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
178 <option value="id">Indel distribution</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
179 <option value="ic">Indels per cycle</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
180 <option value="cov">Coverage distribution</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
181 <option value="gcd">GC depth</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
182 </param>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
183 </when>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
184 </conditional>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
185 <conditional name="filter_by_flags">
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
186 <param name="filter_flags" type="select" label="Filter by SAM flags" help="More info on the flags: https://samtools.github.io/hts-specs/SAMv1.pdf">
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
187 <option value="nofilter" selected="True">Do not filter</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
188 <option value="filter">Filter by flags to exclude or require</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
189 </param>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
190 <when value="filter">
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
191 <param name="require_flags" argument="-f" type="select" display="checkboxes" multiple="True" label="Require">
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
192 <option value="1">Read is paired</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
193 <option value="2">Read is mapped in a proper pair</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
194 <option value="4">The read is unmapped</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
195 <option value="8">The mate is unmapped</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
196 <option value="16">Read strand</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
197 <option value="32">Mate strand</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
198 <option value="64">Read is the first in a pair</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
199 <option value="128">Read is the second in a pair</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
200 <option value="256">The alignment or this read is not primary</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
201 <option value="512">The read fails platform/vendor quality checks</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
202 <option value="1024">The read is a PCR or optical duplicate</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
203 </param>
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
204 <param name="exclude_flags" argument="-F" type="select" display="checkboxes" multiple="True" label="Exclude">
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
205 <option value="1">Read is paired</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
206 <option value="2">Read is mapped in a proper pair</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
207 <option value="4">The read is unmapped</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
208 <option value="8">The mate is unmapped</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
209 <option value="16">Read strand</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
210 <option value="32">Mate strand</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
211 <option value="64">Read is the first in a pair</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
212 <option value="128">Read is the second in a pair</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
213 <option value="256">The alignment or this read is not primary</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
214 <option value="512">The read fails platform/vendor quality checks</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
215 <option value="1024">The read is a PCR or optical duplicate</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
216 </param>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
217 </when>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
218 <when value="nofilter" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
219
0d71d9467847 Uploaded
devteam
parents:
diff changeset
220 </conditional>
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
221 <param name="gc_depth" argument="--GC-depth" type="float" value="20000" label="Size of GC-depth bins" help="Decreasing bin size increases memory requirement" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
222 <param name="insert_size" argument="--insert-size" type="integer" value="8000" label="Maximum insert size" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
223 <!--
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
224
0d71d9467847 Uploaded
devteam
parents:
diff changeset
225 The -I option of samtools stats returns the following message in version 1.2:
0d71d9467847 Uploaded
devteam
parents:
diff changeset
226
0d71d9467847 Uploaded
devteam
parents:
diff changeset
227 Samtools-htslib: init_group_id() header parsing not yet implemented
0d71d9467847 Uploaded
devteam
parents:
diff changeset
228 Abort trap: 6
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
229
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
230 Because of this the section below is commented out until this stats bug is fixed
0d71d9467847 Uploaded
devteam
parents:
diff changeset
231
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
232 <param name="read_group" type="select" optional="true" label="Limit to a specific read group name" >
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
233 <options>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
234 <filter type="data_meta" ref="input_file" key="read_groups" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
235 </options>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
236 </param>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
237
0d71d9467847 Uploaded
devteam
parents:
diff changeset
238 -->
0d71d9467847 Uploaded
devteam
parents:
diff changeset
239
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
240 <param name="read_length" argument="--read-length" type="integer" value="" optional="true" label="Minimum read length to generate statistics for" help="No cutoff if left empty"/>
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
241 <param name="most_inserts" argument="--most-inserts" type="float" value="0.99" label="Report only the main part of inserts" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
242 <param name="trim_quality" argument="--trim-quality" type="integer" value="0" label="BWA trim parameter" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
243
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
244 <conditional name="use_reference">
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
245 <param name="use_ref_selector" argument="--ref-seq" type="select" label="Use reference sequence" help="Required for GC-depth and mismatches-per-cycle calculation">
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
246 <option value="yes">Use reference</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
247 <option selected="True" value="no">Do not use reference</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
248 </param>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
249 <when value="yes">
0d71d9467847 Uploaded
devteam
parents:
diff changeset
250 <conditional name="reference_source">
0d71d9467847 Uploaded
devteam
parents:
diff changeset
251 <param name="reference_source_selector" type="select" label="Choose a reference sequence for GC depth">
0d71d9467847 Uploaded
devteam
parents:
diff changeset
252 <option value="cached">Locally cached</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
253 <option value="history">History</option>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
254 </param>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
255 <when value="cached">
0d71d9467847 Uploaded
devteam
parents:
diff changeset
256 <param name="ref_file" type="select" label="Using genome">
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
257 <options from_data_table="fasta_indexes">
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
258 <filter type="data_meta" ref="input_file" key="dbkey" column="1" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
259 </options>
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
260 </param>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
261 </when>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
262 <when value="history">
0d71d9467847 Uploaded
devteam
parents:
diff changeset
263 <param name="ref_file" type="data" format="fasta" label="Using file" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
264 </when>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
265 </conditional>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
266 </when>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
267 <when value="no" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
268 </conditional>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
269
0d71d9467847 Uploaded
devteam
parents:
diff changeset
270 </inputs>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
271
0d71d9467847 Uploaded
devteam
parents:
diff changeset
272 <outputs>
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
273 <data name="output" format="tabular" label="${tool.name} on ${on_string}">
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
274 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.tab" ext="tabular" visible="true" directory="split" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
275 </data>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
276 </outputs>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
277 <tests>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
278 <test>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
279 <param name="input_file" value="samtools_stats_input.bam" ftype="bam" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
280 <param name="use_ref_selector" value="yes" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
281 <param name="reference_source_selector" value="history" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
282 <param name="ref_file" value="samtools_stats_ref.fa" ftype="fasta" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
283 <output name="output" file="samtools_stats_out1.tab" ftype="tabular" lines_diff="4" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
284 </test>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
285 <test>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
286 <param name="input_file" value="samtools_stats_input.bam" ftype="bam" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
287 <param name="use_ref_selector" value="yes" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
288 <param name="reference_source_selector" value="history" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
289 <param name="ref_file" value="samtools_stats_ref.fa" ftype="fasta" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
290 <param name="split_output_selector" value="yes" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
291 <param name="generate_tables" value="sn,mpc,gcc" />
0d71d9467847 Uploaded
devteam
parents:
diff changeset
292 <output name="output" file="samtools_stats_out2.tab" lines_diff="4">
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
293 <discovered_dataset designation="Summary numbers" ftype="tabular" file="samtools_stats_out2__sn.tab" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
294 <discovered_dataset designation="ACGT content per cycle" ftype="tabular" file="samtools_stats_out2__gcc.tab" />
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
295 <discovered_dataset designation="Mismatches per cycle" ftype="tabular" file="samtools_stats_out2__mpc.tab" />
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
296 </output>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
297 </test>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
298 </tests>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
299 <help><![CDATA[
0d71d9467847 Uploaded
devteam
parents:
diff changeset
300 **What it does**
0d71d9467847 Uploaded
devteam
parents:
diff changeset
301
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
302 This tool runs the ``samtools stats`` command.
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
303 ]]></help>
2
24c5d43cb545 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_stats commit 411130b45dc30f7f24f41cdeec5e148c5d8faf40
iuc
parents: 0
diff changeset
304 <expand macro="citations"/>
0
0d71d9467847 Uploaded
devteam
parents:
diff changeset
305 </tool>
0d71d9467847 Uploaded
devteam
parents:
diff changeset
306