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