root/galaxy-central/tools/maf/genebed_maf_to_fasta.xml

リビジョン 2, 5.1 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
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    </param>
12    <conditional name="maf_source_type">
13      <param name="maf_source" type="select" label="MAF Source">
14        <option value="cached" selected="true">Locally Cached Alignments</option>
15        <option value="user">Alignments in Your History</option>
16      </param>
17      <when value="user">
18        <param name="maf_file" type="data" format="maf" label="MAF File">
19          <validator type="dataset_ok_validator" />
20          <options>
21            <filter type="data_meta" ref="input1" key="dbkey" />
22          </options>
23        </param>
24        <param name="species" type="select" display="checkboxes" multiple="true" label="Choose species" help="Select species to be included in the final alignment">
25          <options>
26            <filter type="data_meta" ref="maf_file" key="species" />
27          </options>
28        </param>
29      </when>
30      <when value="cached">
31        <param name="maf_identifier" type="select" label="MAF Type" >
32          <options from_file="maf_index.loc">
33            <column name="name" index="0"/>
34            <column name="value" index="1"/>
35            <column name="dbkey" index="2"/>
36            <column name="species" index="3"/>
37            <filter type="data_meta" ref="input1" key="dbkey" column="2" multiple="True" separator=","/>
38            <validator type="no_options" message="No alignments are available for the build associated with the selected interval file"/>
39          </options>
40        </param>
41        <param name="species" type="select" display="checkboxes" multiple="true" label="Choose species" help="Select species to be included in the final alignment">
42          <options from_file="maf_index.loc">
43            <column name="uid" index="1"/>
44            <column name="value" index="3"/>
45            <column name="name" index="3"/>
46            <filter type="param_value" ref="maf_identifier" name="uid" column="1"/>
47            <filter type="multiple_splitter" column="3" separator=","/>
48          </options>
49        </param>
50      </when>
51    </conditional>
52    <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.">
53      <option value="True" selected="true">No</option>
54      <option value="False">Yes</option>
55    </param>
56  </inputs>
57  <outputs>
58    <data format="fasta" name="out_file1" />
59  </outputs>
60  <tests>
61    <test>
62      <param name="input1" value="8.bed"/>
63      <param name="maf_source" value="cached"/>in aligning species
64      <param name="maf_identifier" value="8_WAY_MULTIZ_hg17"/>
65      <param name="species" value="canFam1,hg17,mm5,panTro1,rn3"/>
66      <param name="overwrite_with_gaps" value="True"/>
67      <output name="out_file1" file="gene_bed_maf_to_fasta_out.fasta" />
68    </test>
69    <test>
70      <param name="input1" value="8.bed"/>
71      <param name="maf_source" value="user"/>
72      <param name="maf_file" value="4.maf"/>
73      <param name="species" value="hg17,panTro1"/>
74      <param name="overwrite_with_gaps" value="True"/>
75      <output name="out_file1" file="gene_bed_maf_to_fasta_user_out.fasta" />
76    </test>
77  </tests>
78  <help>
79
80**What it does**
81
82The 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:
83
84  * finds all MAF blocks that overlap the coding regions;
85  * sorts MAF blocks by alignment score;
86  * stitches blocks together and resolves overlaps based on alignment score;
87  * outputs alignments in FASTA format.
88
89
90  </help>
91</tool>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。