Mercurial > repos > iuc > genebed_maf_to_fasta
annotate genebed_maf_to_fasta.xml @ 0:f24a9ff28d3c draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
author | iuc |
---|---|
date | Fri, 21 Aug 2020 15:10:13 -0400 |
parents | |
children | 020c78e91cc5 |
rev | line source |
---|---|
0
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
1 <tool id="GeneBed_Maf_Fasta2" name="Stitch Gene blocks" version="1.0.1"> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
2 <description>given a set of coding exon intervals</description> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
3 <macros> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
5 </macros> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
6 <command> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
7 <![CDATA[ |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
8 #if $maf_source_type.maf_source == "cached" |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
9 #set $tab = '\t' |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
10 echo "$maf_source_type.mafType.fields.name${tab}$maf_source_type.mafType.fields.value${tab}$maf_source_type.mafType.fields.indexed_for${tab}$maf_source_type.mafType.fields.exists_in_maf${tab}$maf_source_type.mafType.fields.path" >> ./maf_indexes.loc && |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
11 #end if |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
12 |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
13 python '$__tool_directory__/interval_maf_to_merged_fasta.py' |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
14 #if $maf_source_type.maf_source == "user" |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
15 --mafSource='$maf_source_type.maf_file' --mafIndex='$maf_source_type.maf_file.metadata.maf_index' |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
16 #else |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
17 --mafSource=$maf_source_type.mafType.fields.value |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
18 #end if |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
19 --geneBED |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
20 --dbkey=$dbkey |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
21 --species=$maf_source_type.species |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
22 --interval_file='$input1' |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
23 --output_file='$out_file1' |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
24 --mafSourceType=$maf_source_type.maf_source |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
25 --mafIndexFileDir=. |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
26 --overwrite_with_gaps=$overwrite_with_gaps |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
27 ]]> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
28 </command> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
29 <inputs> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
30 <param name="input1" type="data" format="bed" label="Gene BED File"> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
31 <validator type="unspecified_build" /> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
32 <!-- allow 12+ columns, not as strict as possible. TODO: only list bed files with 12+ columns --> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
33 <validator type="expression" message="Input must be in BED12 format.">value.metadata.columns >= 12</validator> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
34 </param> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
35 <expand macro="maf_source" /> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
36 <param name="overwrite_with_gaps" type="select" label="Split into Gapless MAF blocks" help="When set to Yes, blocks are divided around gaps appearing in any species. This will prevent gaps occurring in the interior of the sequence for an aligning species from overwriting a nucleotide found for the same position in a lower-scoring block."> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
37 <option value="True" selected="true">No</option> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
38 <option value="False">Yes</option> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
39 </param> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
40 </inputs> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
41 <outputs> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
42 <data format="fasta" name="out_file1" /> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
43 </outputs> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
44 <tests> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
45 <test> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
46 <param name="input1" dbkey="hg38" value="maf_to_fasta-in1.bed"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
47 <param name="maf_source" value="cached"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
48 <param name="maf_identifier" value="test"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
49 <param name="species" value="hg38,eulFla1,mm10"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
50 <param name="overwrite_with_gaps" value="True"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
51 <output name="out_file1" file="maf_to_fasta-out1.fasta" /> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
52 </test> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
53 <test> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
54 <param name="input1" dbkey="hg38" value="maf_to_fasta-in2.bed"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
55 <param name="maf_source" value="user"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
56 <param name="maf_file" dbkey="hg38" value="maf_to_fasta-in2.maf"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
57 <param name="species" value="hg38,eulFla1,mm10"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
58 <param name="overwrite_with_gaps" value="True"/> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
59 <output name="out_file1" file="maf_to_fasta-out2.fasta" /> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
60 </test> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
61 </tests> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
62 <help> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
63 **What it does** |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
64 |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
65 The coding sequence of genes are usually composed of several coding exons. Each of these coding exons is an individual genomic region, which when concatenated with each other constitutes the coding sequence. A single genomic region can be covered by multiple alignment blocks. In many cases it is desirable to stitch these alignment blocks together. This tool accepts a list of gene-based intervals, in the Gene BED format. For every interval it performs the following: |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
66 |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
67 * finds all MAF blocks that overlap the coding regions; |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
68 * sorts MAF blocks by alignment score; |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
69 * stitches blocks together and resolves overlaps based on alignment score; |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
70 * outputs alignments in FASTA format. |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
71 </help> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
72 <expand macro="citations" /> |
f24a9ff28d3c
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 17e2194066ca843f6b2391a9632ea9de67d39351"
iuc
parents:
diff
changeset
|
73 </tool> |