Mercurial > repos > iuc > homer_gtf_to_annotations
annotate homer_gtf_to_annotation.xml @ 4:df55927535ed draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e6639e130c5bf50f489dd09e38a1cbc712280fff
author | iuc |
---|---|
date | Fri, 07 Apr 2023 15:02:25 +0000 |
parents | 7c5da353e460 |
children |
rev | line source |
---|---|
3
7c5da353e460
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit 16a919905f336e34e237388c1921d0f4f8a368af
iuc
parents:
0
diff
changeset
|
1 <tool id="homer_gtf_to_annotations" name="Converts GTF to Annotations file for Homer" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@"> |
0
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
2 <macros> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
3 <import>macros.xml</import> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
4 </macros> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
5 <expand macro="requirements"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
6 <command detect_errors="exit_code"><![CDATA[ |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
7 ## Run parseGTF.pl |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
8 parseGTF.pl $gtf_file ann |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
9 ## Different options |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
10 $type |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
11 $id |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
12 $removeAccVer |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
13 $removeEnsemblVer |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
14 -annTSSstartOffset $annTSSstartOffset |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
15 -annTSSendOffset $annTSSendOffset |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
16 -annTTSstartOffset $annTTSstartOffset |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
17 -annTTSendOffset $annTTSendOffset |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
18 #if $features != 'None': |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
19 #set features_space = ' '.join(str($features).split(',')) |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
20 -features $features_space |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
21 #end if |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
22 > annotations.txt && |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
23 ## Prioritize and add intergenic annotation |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
24 assignGenomeAnnotation annotations.txt annotations.txt -prioritize $output > $output_stats |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
25 ]]></command> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
26 <inputs> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
27 <param name="gtf_file" type="data" format="gtf,gff,gff3" label="GTF file" help="Must be of datatype "gtf" or "gff" or "gff3""/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
28 <param name="type" type="select" label="Format of input file"> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
29 <option value="">GTF</option> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
30 <option value="-gff">GFF (treats 9th column as ID)</option> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
31 <option value="-gff3">GFF3 (looks for parent attribute to assign gene name)</option> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
32 </param> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
33 <param name="id" type="select" label="Primary identifier"> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
34 <option value="-tid">Transcript ID</option> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
35 <option value="-gid">Gene ID</option> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
36 </param> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
37 <param name="features" type="select" label="Which feature(s) to use?" multiple="true" display="checkboxes"> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
38 <option value="exon" selected="true">exon</option> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
39 <option value="start_codon" selected="true">start_codon</option> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
40 <option value="stop_codon" selected="true">stop_codon</option> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
41 </param> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
42 <param name="removeAccVer" type="boolean" truevalue="-removeAccVer" falsevalue="" label="Remove any .1, .2, etc. at end of accession numbers, i.e. AT1G01040.2" help="-removeAccVer; Default=False"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
43 <param name="removeEnsemblVer" type="boolean" truevalue="-removeEnsemblVer" falsevalue="" label="Remove 'transcript:' and '_T01' style ids" help="-removeEnsemblVer; Default=False"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
44 <param name="annTSSstartOffset" type="integer" value="-1000" label="distance upstream of TSS to start promoter annotation" help="-annTSSstartOffset; Default=-1000"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
45 <param name="annTSSendOffset" type="integer" value="100" label="distance upstream/downstream of TSS to end promoter annotation" help="-annTSSendOffset; Default=100"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
46 <param name="annTTSstartOffset" type="integer" value="-100" label="distance upstream of TTS to start TTS annotation" help="-annTTSstartOffset; Default=-100"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
47 <param name="annTTSendOffset" type="integer" value="1000" label="distance upstream/downstream of TTS to end TTS annotation" help="-annTTSendOffset; Default=1000"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
48 </inputs> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
49 <outputs> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
50 <data format="tabular" name="output" label="${tool.name} on ${on_string}: Annotations"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
51 <data format="tabular" name="output_stats" label="${tool.name} on ${on_string}: Annotation stats"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
52 </outputs> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
53 <tests> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
54 <test> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
55 <!-- simple test with default --> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
56 <param name="gtf_file" value="small.gtf" ftype="gtf"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
57 <output name="output" file="annotations_default.txt" ftype="tabular"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
58 <output name="output_stats" file="annotations_default_stats.txt" ftype="tabular"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
59 </test> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
60 <test> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
61 <!-- simple test with default except no exon_end --> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
62 <param name="gtf_file" value="small.gtf" ftype="gtf"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
63 <param name="features" value="exon,start_codon"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
64 <output name="output" file="annotations_exon_start.txt" ftype="tabular"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
65 <output name="output_stats" file="annotations_exon_start_stats.txt" ftype="tabular"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
66 </test> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
67 <test> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
68 <!-- simple test with default smaller TSS TTS --> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
69 <param name="gtf_file" value="small.gtf" ftype="gtf"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
70 <param name="annTSSstartOffset" value="-50"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
71 <param name="annTSSendOffset" value="50"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
72 <param name="annTTSstartOffset" value="-50"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
73 <param name="annTTSendOffset" value="50"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
74 <output name="output" file="annotations_small_TSSTTS.txt" ftype="tabular"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
75 <output name="output_stats" file="annotations_small_TSSTTS_stats.txt" ftype="tabular"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
76 </test> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
77 </tests> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
78 <help><![CDATA[ |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
79 This tool convert a GTF file to a HOMER-style annotation file compatible with annotatePeaks. |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
80 It follows the tutorial proposed here: http://homer.ucsd.edu/homer/ngs/advancedAnnotation.html |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
81 ]]></help> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
82 <expand macro="citation"/> |
8ebb6520eef4
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit e49d856e0181edc6120220a1b819cba2466a4289"
iuc
parents:
diff
changeset
|
83 </tool> |