Mercurial > repos > yating-l > rename_tracks
annotate rename_tracks.xml @ 0:8b19a698d90e draft
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
author | yating-l |
---|---|
date | Mon, 25 Jun 2018 15:01:41 -0400 |
parents | |
children | 72ccb2f848a0 |
rev | line source |
---|---|
0
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
1 <tool id="rename_tracks" name="rename the tracks" version="1.2"> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
2 <description>a Galaxy tool to rename the scaffold names in the custom track files</description> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
3 <requirements> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
4 <requirement type="package" version="1.2">samtools</requirement> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
5 <requirement type="package" version="340">ucsc_rename_bigwig</requirement> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
6 </requirements> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
7 <stdio> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
8 <exit_code range="1:" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
9 </stdio> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
10 <command><![CDATA[ |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
11 python $__tool_directory__/rename_tracks.py "${format_select.input}" "${mapping}" $format_select.format "${output}" |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
12 #if $format_select.format == "bigwig" |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
13 "${format_select.reference}" |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
14 #end if |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
15 |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
16 |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
17 ]]></command> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
18 <inputs> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
19 <conditional name="format_select"> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
20 <param name="format" type="select" label="Select the format of your custom track file"> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
21 <option value="bed">BED</option> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
22 <option value="gff3">GFF3</option> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
23 <option value="gtf">GTF</option> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
24 <option value="bam">BAM</option> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
25 <option value="bigwig">BigWig</option> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
26 </param> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
27 <when value="bed"> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
28 <param name="input" type="data" format="bed" label="Custom track file" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
29 </when> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
30 <when value="gff3"> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
31 <param name="input" type="data" format="gff3" label="Custom track file" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
32 </when> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
33 <when value="gtf"> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
34 <param name="input" type="data" format="gtf" label="Custom track file" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
35 </when> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
36 <when value="bam"> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
37 <param name="input" type="data" format="bam" label="Custom track file" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
38 </when> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
39 <when value="bigwig"> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
40 <param name="input" type="data" format="bigwig" label="Custom track file" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
41 <param name="reference" type="data" format="fasta" label="Provide the renamed the reference file from 'renamed the scaffolds' tool" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
42 </when> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
43 </conditional> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
44 <param name="mapping" type="data" format="csv" label="Provide the name mapping file from 'renamed the scaffolds' tool"/> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
45 </inputs> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
46 <outputs> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
47 <data name="output" format_source="input" label="${tool.name} on ${on_string}: renamed_track" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
48 </outputs> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
49 <tests> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
50 <test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
51 <!-- Test with GFF3 --> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
52 <param name="input" value="Augustus.gff3" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
53 <param name="format" value="gff3" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
54 <param name="mapping" value="name_mapping.csv" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
55 <output name="output" file="rename_Augustus.gff3"/> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
56 </test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
57 <test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
58 <!-- Test with BED --> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
59 <param name="input" value="TrfBig.bed" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
60 <param name="format" value="bed" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
61 <param name="mapping" value="name_mapping.csv" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
62 <output name="output" file="rename_TrfBig.bed"/> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
63 </test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
64 <test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
65 <!-- Test with GTF --> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
66 <param name="input" value="StringTie_assembled_transcripts.gtf" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
67 <param name="format" value="gtf" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
68 <param name="mapping" value="name_mapping.csv" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
69 <output name="output" file="rename_StringTie.gtf" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
70 </test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
71 <test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
72 <!-- Test with BAM --> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
73 <param name="input" value="HISAT.bam" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
74 <param name="format" value="bam" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
75 <param name="mapping" value="name_mapping.csv" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
76 <output name="output" file="rename_HISAT.bam" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
77 </test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
78 <test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
79 <!-- Test with BigWig --> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
80 <param name="input" value="sequence_cov.bigwig" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
81 <param name="format" value="bigwig" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
82 <param name="mapping" value="name_mapping.csv" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
83 <param name="reference" value="renamed_reference.fasta" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
84 <output name="output" file="rename_sequence_cov.bigwig" /> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
85 </test> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
86 </tests> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
87 <help><![CDATA[ |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
88 This tool is to rename scaffold names in the custom track files, so that the tracks use the same scaffold names as the reference genome renamed by "rename the scaffolds" tool |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
89 ]]></help> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
90 <citations> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
91 </citations> |
8b19a698d90e
planemo upload commit b615ca3bfed9f2115f62d1af30d4726fe8ba08d8
yating-l
parents:
diff
changeset
|
92 </tool> |