annotate bed2annotation.xml @ 0:0475e4175855 draft default tip

planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
author yqiancolumbia
date Mon, 30 Apr 2018 05:25:11 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
1 <tool id="bed2annotation" name="Annotate genomic intervals">
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
2 <description></description>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
3
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
4 <command interpreter="perl">
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
5 /home/galaxy/tools/CTK/bed2annotation.pl -v
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
6 -conf /home/galaxy/tools/CTK/annotation.loc
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
7 $bigFileFlag $ssFlag -dbkey $dbkey $geneFlag $miRNAFlag $rmskFlag $regionFlag
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
8
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
9 #if $customFeature.annotateCustomFeature =="yes":
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
10 -custom $customFeature.customFeatureBedFile --custom-name "$customFeature.customFeatureName" --custom-summary $customFeature.customSummaryMethod
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
11 #end if
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
12 -summary $outputSummary $inputBed $outputAnnotation
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
13 </command>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
14 <inputs>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
15 <param type="data" format="bed" name="inputBed" label="Select a BED file to be annotated"/>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
16 <param name="bigFileFlag" type="boolean" truevalue="-big" falsevalue="" checked="yes" label="Big file (over 6M lines)" />
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
17 <param name="dbkey" type="select" label="Genome build name">
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
18 <option value="hg19">hg19</option>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
19 <option value="mm10">mm10</option>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
20 </param>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
21 <param name="ssFlag" type="boolean" truevalue="-ss" falsevalue="" checked="yes" label="Consider the two strands separately when possible" />
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
22 <param name="regionFlag" type="boolean" truevalue="-region" falsevalue="" checked="yes" label="Identify the genomic region where the peaks are located, it will give the percentage of tags mapped to CDS, 3'UTR, introns, etc.
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
23 " />
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
24 <param name="geneFlag" type="boolean" truevalue="-gene" falsevalue="" checked="no" label="Annotate overlapping genes (RefSeq/UCSC known genes)" />
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
25 <param name="miRNAFlag" type="boolean" truevalue="-miRNA" falsevalue="" checked="no" label="Annotate overlapping microRNAs" />
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
26 <param name="rmskFlag" type="boolean" truevalue="-rmsk" falsevalue="" checked="no" label="Annotate overlapping RepeatMasked sequences (type and %)" />
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
27 <conditional name="customFeature">
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
28 <param name="annotateCustomFeature" type="select" label="Do you want to also annotate custom feature in history?">
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
29 <option value="yes">Yes</option>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
30 <option value="no" selected="true">No</option>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
31 </param>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
32 <when value="yes">
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
33 <param type="data" format="bed" name="customFeatureBedFile" label="Select a BED file with custom features"/>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
34 <param type="text" name="customFeatureName" value="custom_feature" size="80" label="Name your custom features (No space, no special character)"/>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
35 <param name="customSummaryMethod" type="select" label="Select how you would like to combine multiple items of the annotation">
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
36 <option value="all" selected="true">List the name of all</option>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
37 <option value="max_num">List the name and score of the one with the max score</option>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
38 <option value="min_num">List the name and score of the one with the min score</option>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
39 <option value="max_overlap">List the name and overlap of the one with the max overlap proportion</option>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
40 </param>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
41 </when>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
42 <when value="no">
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
43 </when>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
44 </conditional>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
45
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
46 </inputs>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
47
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
48 <outputs>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
49 <data name="outputAnnotation" format="tabular" label="Annotate internals on ${on_string}" />
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
50 <data name="outputSummary" format="tabular" label="Summary of the annotation on ${on_string}" />
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
51 </outputs>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
52 <help>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
53
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
54 .. class:: infomark
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
55
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
56 **What the tool does**
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
57
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
58 Functional annotation of CLIP tags.
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
59
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
60 It will take as input files in BED format of unique CLIP tags (with or without RGB color) and annotate genomic intervals with various features built in or from history.
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
61
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
62 Note 1: The input can be CLIP tags, CLIP cluster, CIMS, or anything else. However, if the input is big, it might involve extensive computational load. Therefore, it is recommended that tags are clustered for some of the annotations (such as overlapping genes, rmsk, etc).
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
63
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
64 Note 2: Strand is not considered for RepeatMasked regions even when you choose to separate the two strands (because for some repeats, such as simple_repeat or micro satellites, strand does not make sense).
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
65
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
66 -----
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
67
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
68 **Output files**
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
69
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
70 There are two output files.
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
71
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
72 The first output file has the detailed annotation, with intervals exactly in the same order as the input file, so that you can easily put different types of information together.
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
73
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
74 The second output file is a summary of annotation.
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
75
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
76 </help>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
77 </tool>
0475e4175855 planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
yqiancolumbia
parents:
diff changeset
78