annotate sam2interval.xml @ 1:75557c0908a9 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam2interval commit 206cd8245e7619b0e924c5066d0172129222993d"
author devteam
date Wed, 05 Feb 2020 06:58:53 -0500
parents 8c737b8ddc45
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
75557c0908a9 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam2interval commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents: 0
diff changeset
1 <tool id="sam2interval" name="Convert SAM" version="1.0.2" profile="16.04">
0
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
2 <description>to interval</description>
1
75557c0908a9 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam2interval commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents: 0
diff changeset
3 <requirements>
75557c0908a9 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam2interval commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents: 0
diff changeset
4 <requirement type="package" version="3.7">python</requirement>
75557c0908a9 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam2interval commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents: 0
diff changeset
5 </requirements>
75557c0908a9 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam2interval commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents: 0
diff changeset
6 <command>
75557c0908a9 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam2interval commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents: 0
diff changeset
7 python '$__tool_directory__/sam2interval.py' --input_sam_file='$input1' $print_all > '$out_file1'
0
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
8 </command>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
9 <inputs>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
10 <param format="sam" name="input1" type="data" label="Select dataset to convert"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
11 <param name="print_all" type="select" label="Print all?" help="Do you want to retain original SAM fields? See example below.">
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
12 <option value="-p">Yes</option>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
13 <option value="">No</option>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
14 </param>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
15 </inputs>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
16 <outputs>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
17 <data format="interval" name="out_file1" label="Converted Interval" />
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
18 </outputs>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
19 <tests>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
20 <test>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
21 <param name="input1" value="sam_bioinf_example.sam" ftype="sam"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
22 <param name="print_all" value="Yes"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
23 <output name="out_file1" file="sam2interval_printAll.dat" ftype="interval"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
24 </test>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
25 <test>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
26 <param name="input1" value="sam_bioinf_example.sam" ftype="sam"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
27 <param name="print_all" value="No"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
28 <output name="out_file1" file="sam2interval_noprintAll.dat" ftype="interval"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
29 </test>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
30 <test>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
31 <param name="input1" value="sam2interval-test3.sam" ftype="sam"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
32 <param name="print_all" value="No"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
33 <output name="out_file1" file="sam2interval_with_unmapped_reads_noprintAll.dat" ftype="interval"/>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
34 </test>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
35
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
36 </tests>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
37 <help>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
38
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
39 **What it does**
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
40
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
41 Converts positional information from a SAM dataset into interval format with 0-based start and 1-based end. CIGAR string of SAM format is used to compute the end coordinate.
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
42
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
43 -----
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
44
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
45 **Example**
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
46
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
47 Converting the following dataset::
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
48
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
49 r001 163 ref 7 30 8M2I4M1D3M = 37 39 TTAGATAAAGGATACTA *
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
50 r002 0 ref 9 30 3S6M1P1I4M * 0 0 AAAAGATAAGGATA *
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
51 r003 0 ref 9 30 5H6M * 0 0 AGCTAA * NM:i:1
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
52 r004 0 ref 16 30 6M14N5M * 0 0 ATAGCTTCAGC *
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
53 r003 16 ref 29 30 6H5M * 0 0 TAGGC * NM:i:0
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
54 r001 83 ref 37 30 9M = 7 -39 CAGCGCCAT *
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
55
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
56 into Interval format will produce the following if *Print all?* is set to **Yes**::
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
57
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
58 ref 6 22 + r001 163 ref 7 30 8M2I4M1D3M = 37 39 TTAGATAAAGGATACTA *
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
59 ref 8 19 + r002 0 ref 9 30 3S6M1P1I4M * 0 0 AAAAGATAAGGATA *
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
60 ref 8 14 + r003 0 ref 9 30 5H6M * 0 0 AGCTAA * NM:i:1
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
61 ref 15 40 + r004 0 ref 16 30 6M14N5M * 0 0 ATAGCTTCAGC *
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
62 ref 28 33 - r003 16 ref 29 30 6H5M * 0 0 TAGGC * NM:i:0
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
63 ref 36 45 - r001 83 ref 37 30 9M = 7 -39 CAGCGCCAT *
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
64
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
65 Setting *Print all?* to **No** will generate the following::
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
66
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
67 ref 6 22 + r001
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
68 ref 8 19 + r002
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
69 ref 8 14 + r003
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
70 ref 15 40 + r004
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
71 ref 28 33 - r003
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
72 ref 36 45 - r001
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
73
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
74
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
75 </help>
8c737b8ddc45 Uploaded tool tarball.
devteam
parents:
diff changeset
76 </tool>