comparison tools/maf/genebed_maf_to_fasta.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:9071e359b9a3
1 <tool id="GeneBed_Maf_Fasta2" name="Stitch Gene blocks" version="1.0.1">
2 <description>given a set of coding exon intervals</description>
3 <command interpreter="python">
4 #if $maf_source_type.maf_source == "user" #interval_maf_to_merged_fasta.py --dbkey=$dbkey --species=$maf_source_type.species --mafSource=$maf_source_type.maf_file --mafIndex=$maf_source_type.maf_file.metadata.maf_index --interval_file=$input1 --output_file=$out_file1 --mafSourceType=$maf_source_type.maf_source --geneBED --mafIndexFileDir=${GALAXY_DATA_INDEX_DIR}
5 #else #interval_maf_to_merged_fasta.py --dbkey=$dbkey --species=$maf_source_type.species --mafSource=$maf_source_type.maf_identifier --interval_file=$input1 --output_file=$out_file1 --mafSourceType=$maf_source_type.maf_source --geneBED --mafIndexFileDir=${GALAXY_DATA_INDEX_DIR}
6 #end if# --overwrite_with_gaps=$overwrite_with_gaps
7 </command>
8 <inputs>
9 <param name="input1" type="data" format="bed" label="Gene BED File">
10 <validator type="unspecified_build" />
11 <validator type="expression" message="Input must be in BED12 format.">value.metadata.columns &gt;= 12</validator> <!-- allow 12+ columns, not as strict as possible. TODO: only list bed files with 12+ columns -->
12 </param>
13 <conditional name="maf_source_type">
14 <param name="maf_source" type="select" label="MAF Source">
15 <option value="cached" selected="true">Locally Cached Alignments</option>
16 <option value="user">Alignments in Your History</option>
17 </param>
18 <when value="user">
19 <param name="maf_file" type="data" format="maf" label="MAF File">
20 <validator type="dataset_ok_validator" />
21 <options>
22 <filter type="data_meta" ref="input1" key="dbkey" />
23 </options>
24 </param>
25 <param name="species" type="select" display="checkboxes" multiple="true" label="Choose species" help="Select species to be included in the final alignment">
26 <options>
27 <filter type="data_meta" ref="maf_file" key="species" />
28 </options>
29 </param>
30 </when>
31 <when value="cached">
32 <param name="maf_identifier" type="select" label="MAF Type" >
33 <options from_file="maf_index.loc">
34 <column name="name" index="0"/>
35 <column name="value" index="1"/>
36 <column name="dbkey" index="2"/>
37 <column name="species" index="3"/>
38 <filter type="data_meta" ref="input1" key="dbkey" column="2" multiple="True" separator=","/>
39 <validator type="no_options" message="No alignments are available for the build associated with the selected interval file"/>
40 </options>
41 </param>
42 <param name="species" type="select" display="checkboxes" multiple="true" label="Choose species" help="Select species to be included in the final alignment">
43 <options from_file="maf_index.loc">
44 <column name="uid" index="1"/>
45 <column name="value" index="3"/>
46 <column name="name" index="3"/>
47 <filter type="param_value" ref="maf_identifier" name="uid" column="1"/>
48 <filter type="multiple_splitter" column="3" separator=","/>
49 </options>
50 </param>
51 </when>
52 </conditional>
53 <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.">
54 <option value="True" selected="true">No</option>
55 <option value="False">Yes</option>
56 </param>
57 </inputs>
58 <outputs>
59 <data format="fasta" name="out_file1" />
60 </outputs>
61 <tests>
62 <test>
63 <param name="input1" value="8.bed"/>
64 <param name="maf_source" value="cached"/>in aligning species
65 <param name="maf_identifier" value="8_WAY_MULTIZ_hg17"/>
66 <param name="species" value="canFam1,hg17,mm5,panTro1,rn3"/>
67 <param name="overwrite_with_gaps" value="True"/>
68 <output name="out_file1" file="gene_bed_maf_to_fasta_out.fasta" />
69 </test>
70 <test>
71 <param name="input1" value="8.bed"/>
72 <param name="maf_source" value="user"/>
73 <param name="maf_file" value="4.maf"/>
74 <param name="species" value="hg17,panTro1"/>
75 <param name="overwrite_with_gaps" value="True"/>
76 <output name="out_file1" file="gene_bed_maf_to_fasta_user_out.fasta" />
77 </test>
78 </tests>
79 <help>
80
81 **What it does**
82
83 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:
84
85 * finds all MAF blocks that overlap the coding regions;
86 * sorts MAF blocks by alignment score;
87 * stitches blocks together and resolves overlaps based on alignment score;
88 * outputs alignments in FASTA format.
89
90 ------
91
92 **Citation**
93
94 If you use this tool, please cite `Blankenberg D, Taylor J, Nekrutenko A; The Galaxy Team. Making whole genome multiple alignments usable for biologists. Bioinformatics. 2011 Sep 1;27(17):2426-2428. &lt;http://www.ncbi.nlm.nih.gov/pubmed/21775304&gt;`_
95
96
97 </help>
98 </tool>