annotate bed_to_protein_map.xml @ 1:a7c58b43cbaa draft default tip

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2a470e2c775a7427aa530e058510e4dc7b6d8e80"
author galaxyp
date Tue, 07 Apr 2020 11:33:11 -0400
parents 024ed7b0ad93
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
a7c58b43cbaa "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2a470e2c775a7427aa530e058510e4dc7b6d8e80"
galaxyp
parents: 0
diff changeset
1 <tool id="bed_to_protein_map" name="bed to protein map" version="0.2.0">
0
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
2 <description>genomic location of proteins for MVP</description>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
3 <requirements>
1
a7c58b43cbaa "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2a470e2c775a7427aa530e058510e4dc7b6d8e80"
galaxyp
parents: 0
diff changeset
4 <requirement type="package" version="3.7">python</requirement>
0
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
5 </requirements>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
6 <stdio>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
7 <exit_code range="1:" />
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
8 </stdio>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
9 <command><![CDATA[
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
10 python '$__tool_directory__/bed_to_protein_map.py' '$input' '$output'
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
11 ]]></command>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
12 <inputs>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
13 <param name="input" type="data" format="bed" label="A BED file with 12 columns, thickStart and thickEnd define protein coding region"/>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
14 </inputs>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
15 <outputs>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
16 <data name="output" format="tabular">
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
17 <actions>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
18 <action name="column_names" type="metadata" default="name,chrom,start,end,strand,cds_start,cds_end"/>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
19 </actions>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
20 </data>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
21 </outputs>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
22 <tests>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
23 <test>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
24 <param name="input" ftype="bed" value="input.bed"/>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
25 <output name="output" file="output.tabular"/>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
26 </test>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
27 </tests>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
28 <help><![CDATA[
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
29 Convert a BED format file of the proteins from a proteomics search database into a tabular format for the Multiomics Visualization Platform (MVP).
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
30
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
31 Example input BED dataset::
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
32
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
33 X 276352 291629 ENST00000430923 20 + 284187 291629 80,80,80 5 42,148,137,129,131 0,7814,12380,14295,15146
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
34 X 304749 318819 ENST00000326153 20 - 305073 318787 80,80,80 10 448,153,149,209,159,68,131,71,138,381 0,2610,2982,6669,8016,9400,10140,10479,12164,13689
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
35
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
36
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
37 Output::
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
38
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
39 name chrom start end strand cds_start cds_end
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
40 ENST00000430923 X 284187 284314 + 0 127
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
41 ENST00000430923 X 288732 288869 + 127 264
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
42 ENST00000430923 X 290647 290776 + 264 393
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
43 ENST00000430923 X 291498 291629 + 393 524
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
44 ENST00000326153 X 318438 318787 - 0 349
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
45 ENST00000326153 X 316913 317051 - 349 487
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
46 ENST00000326153 X 315228 315299 - 487 558
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
47 ENST00000326153 X 314889 315020 - 558 689
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
48 ENST00000326153 X 314149 314217 - 689 757
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
49 ENST00000326153 X 312765 312924 - 757 916
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
50 ENST00000326153 X 311418 311627 - 916 1125
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
51 ENST00000326153 X 307731 307880 - 1125 1274
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
52 ENST00000326153 X 307359 307512 - 1274 1427
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
53 ENST00000326153 X 305073 305197 - 1427 1551
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
54
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
55
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
56 The tabular output can be converted to a sqlite database using the Query_Tabular_ tool.
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
57
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
58 The sqlite table should be named: feature_cds_map
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
59 The names for the columns should be: name,chrom,start,end,strand,cds_start,cds_end
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
60
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
61 This SQL query will return the genomic location for a peptide sequence in a protein (multiply the animo acid position by 3 for the cds location)::
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
62
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
63 SELECT distinct chrom, CASE WHEN strand = '+' THEN start + cds_offset - cds_start ELSE end - cds_offset - cds_start END as "pos"
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
64 FROM feature_cds_map
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
65 WHERE name = acc_name AND cds_offset >= cds_start AND cds_offset < cds_end
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
66
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
67
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
68 .. _Query_Tabular: https://toolshed.g2.bx.psu.edu/view/iuc/query_tabular/1ea4e668bf73
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
69
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
70 ]]></help>
024ed7b0ad93 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2d39f681f77eedc840c17aebe4ddc8f66c8a7c62-dirty
galaxyp
parents:
diff changeset
71 </tool>