annotate retrieve_ensembl_bed.xml @ 1:9c4a48f5d4e7 draft default tip

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
author galaxyp
date Mon, 07 Oct 2019 16:14:39 -0400
parents da1b538b87e5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
1 <tool id="retrieve_ensembl_bed" name="Retrieve Ensembl features in BED format" version="0.1.0">
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
2 <description>using Ensembl REST API</description>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
3 <macros>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
4 <import>macros.xml</import>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
5 </macros>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
6 <requirements>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
7 <expand macro="ensembl_requirements" />
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
8 <expand macro="bedutil_requirements" />
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
9 </requirements>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
10 <command detect_errors="exit_code"><![CDATA[
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
11 python '$__tool_directory__/retrieve_ensembl_bed.py'
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
12 --species '$species'
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
13 #if $extended_bed:
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
14 --extended_bed
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
15 #end if
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
16 $ucsc_chrom_names
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
17 #if $biotypes:
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
18 --biotypes '$biotypes'
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
19 #end if
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
20 #if $regions:
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
21 --regions '$regions'
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
22 #end if
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
23 #if $interval_file:
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
24 #if $interval_file.ext.find('bed') > -1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
25 --interval_format bed
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
26 #elif $interval_file.ext in ['gff','gtf','gff3']
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
27 --interval_format gff
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
28 #else
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
29 --interval_format interval
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
30 #end if
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
31 --interval_file '$interval_file'
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
32 #end if
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
33 '$transcript_bed'
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
34 ]]></command>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
35 <inputs>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
36 <param name="species" type="text" value="" label="Ensembl species" >
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
37 <help>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
38 </help>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
39 <expand macro="species_options" />
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
40 <validator type="regex" message="Enter an Ensembl organism">^\w+.*$</validator>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
41 </param>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
42 <param name="extended_bed" type="boolean" truevalue=",second_name,cds_start_status,cds_end_status,exon_frames,type,gene_name,second_gene_name,gene_type" falsevalue="" checked="true"
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
43 label="Keep extra columns from ensembl BED"/>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
44 <param name="ucsc_chrom_names" type="boolean" truevalue="--ucsc_chrom_names" falsevalue="" checked="false"
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
45 label="Use the UCSC names for Chromosomes"/>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
46 <param name="biotypes" type="text" value="" optional="true" label="Restrict Feature retrieval to these biotypes" >
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
47 <expand macro="biotypes_help" />
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
48 </param>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
49 <param name="regions" type="text" value="" optional="true" label="Restrict Feature retrieval to comma-separated list of regions" >
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
50 <help>Each region is specifed as: chr or chr:pos or chr:from-to</help>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
51 <validator type="regex" message="">^(\w+(:\d+(-\d+)?)?(,\w+(:\d+(-\d+)?)?)*)?$</validator>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
52 </param>
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
53 <param name="interval_file" type="data" format="bed,gff,interval" label="Retrieve the intervals from this file" optional="true"/>
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
54 </inputs>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
55 <outputs>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
56 <data name="transcript_bed" format="bed" label="Ensembl ${species} transcripts.bed">
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
57 <actions>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
58 <action name="column_names" type="metadata"
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
59 default="chrom,chromStart,chromEnd,name,score,strand,thickStart,thickEnd,itemRgb,blockCount,blockSizes,blockStarts${extended_bed}"/>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
60 </actions>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
61 </data>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
62 </outputs>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
63 <tests>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
64 <test>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
65 <param name="species" value="human"/>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
66 <param name="biotypes" value="protein_coding"/>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
67 <param name="regions" value="1:51194990-51275150"/>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
68 <output name="transcript_bed">
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
69 <assert_contents>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
70 <has_text_matching expression="(chr)?1\t\d+\t\d+\tENST" />
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
71 </assert_contents>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
72 </output>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
73 </test>
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
74 <test>
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
75 <param name="species" value="mouse"/>
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
76 <param name="biotypes" value="protein_coding"/>
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
77 <param name="interval_file" ftype="bed" value="test.bed"/>
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
78 <output name="transcript_bed">
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
79 <assert_contents>
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
80 <has_text_matching expression="(chr)?1\t\d+\t\d+\tENSMUST" />
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
81 </assert_contents>
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
82 </output>
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
83 </test>
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
84 </tests>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
85 <help><![CDATA[
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
86 Retrieve Ensembl cDNAs in BED format
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
87
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
88 usage: retrieve_ensembl_bed.py [-h] [-s SPECIES] [-R REGIONS] [-B BIOTYPES]
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
89 [-X] [-U] [-t] [-v] [-d]
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
90 output
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
91
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
92 positional arguments:
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
93 output Output BED filepath, or for stdout: "-"
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
94
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
95 optional arguments:
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
96 -h, --help show this help message and exit
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
97 -s SPECIES, --species SPECIES
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
98 Ensembl Species to retrieve
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
99 -R REGIONS, --regions REGIONS
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
100 Restrict Ensembl retrieval to regions e.g.
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
101 X,2:20000-25000,3:100-500+
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
102 -i INTERVAL_FILE, --interval_file INTERVAL_FILE
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
103 Regions from a bed, gff, or interval file
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
104
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
105 -f {bed,gff,interval}, --interval_format {bed,gff,interval}
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
106 Interval format has TAB-separated
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
107 columns: Seq, Start, End, Strand
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
108
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
109 -B BIOTYPES, --biotypes BIOTYPES
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
110 Restrict Ensembl biotypes to retrieve
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
111 -X, --extended_bed Include the extended columns returned from Ensembl
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
112 -U, --ucsc_chrom_names
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
113 Use the UCSC names for Chromosomes
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
114 -t, --toplevel Print Ensembl toplevel for species
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
115 -v, --verbose Verbose
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
116 -d, --debug Debug
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
117
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
118
1
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
119 **Output**
9c4a48f5d4e7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 6babd357845126292cb202aaea0f70ff68819525"
galaxyp
parents: 0
diff changeset
120
0
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
121 Ensembl REST API returns an extended BED format with these additional columns::
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
122
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
123 second_name, cds_start_status, cds_end_status, exon_frames, type, gene_name, second_gene_name, gene_type
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
124
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
125 ]]></help>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
126 <citations>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
127 <citation type="doi">10.1093/bioinformatics/btu613</citation>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
128 <citation type="doi">10.1093/nar/gku1010</citation>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
129 </citations>
da1b538b87e5 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteogenomics/retrieve_ensembl_bed commit 88cf1e923a8c9e5bc6953ad412d15a7c70f054d1
galaxyp
parents:
diff changeset
130 </tool>