root/galaxy-central/tools/maf/interval2maf.xml @ 3

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

import galaxy-central

行番号 
1<tool id="Interval2Maf1" name="Extract MAF blocks" version="1.0.1">
2  <description>given a set of genomic intervals</description>
3  <command interpreter="python">
4    #if $maf_source_type.maf_source == "user" #interval2maf.py --dbkey=${input1.dbkey} --chromCol=${input1.metadata.chromCol} --startCol=${input1.metadata.startCol} --endCol=${input1.metadata.endCol} --strandCol=${input1.metadata.strandCol} --mafFile=$maf_source_type.mafFile --mafIndex=$maf_source_type.mafFile.metadata.maf_index --interval_file=$input1 --output_file=$out_file1 --mafIndexFile=${GALAXY_DATA_INDEX_DIR}/maf_index.loc --species=$maf_source_type.species
5    #else                                     #interval2maf.py --dbkey=${input1.dbkey} --chromCol=${input1.metadata.chromCol} --startCol=${input1.metadata.startCol} --endCol=${input1.metadata.endCol} --strandCol=${input1.metadata.strandCol} --mafType=$maf_source_type.mafType --interval_file=$input1 --output_file=$out_file1 --mafIndexFile=${GALAXY_DATA_INDEX_DIR}/maf_index.loc --species=$maf_source_type.species
6    #end if# --split_blocks_by_species=$split_blocks_by_species_selector.split_blocks_by_species
7    #if $split_blocks_by_species_selector.split_blocks_by_species == "split_blocks_by_species"#
8        --remove_all_gap_columns=$split_blocks_by_species_selector.remove_all_gap_columns
9    #end if
10  </command>
11  <inputs>
12    <param format="interval" name="input1" type="data" label="Choose intervals">
13      <validator type="unspecified_build" />
14    </param>
15    <conditional name="maf_source_type">
16      <param name="maf_source" type="select" label="MAF Source">
17        <option value="cached" selected="true">Locally Cached Alignments</option>
18        <option value="user">Alignments in Your History</option>
19      </param>
20      <when value="user">
21        <param format="maf" name="mafFile" label="Choose alignments" type="data">
22          <options>
23            <filter type="data_meta" ref="input1" key="dbkey" />
24          </options>
25          <validator type="dataset_ok_validator" />
26        </param>
27        <param name="species" type="select" display="checkboxes" multiple="true" label="Choose species" help="Select species to be included in the final alignment">
28          <options>
29            <filter type="data_meta" ref="mafFile" key="species" />
30          </options>
31        </param>
32      </when>
33      <when value="cached">
34        <param name="mafType" type="select" label="Choose alignments">
35          <options from_data_table="indexed_maf_files">
36            <!--
37            <column name="name" index="0"/>
38            <column name="value" index="1"/>
39            <column name="dbkey" index="2"/>
40            <column name="species" index="3"/>
41            -->
42            <filter type="data_meta" ref="input1" key="dbkey" column="dbkey" multiple="True" separator=","/>
43            <validator type="no_options" message="No alignments are available for the build associated with the selected interval file"/>
44          </options>
45        </param>
46        <param name="species" type="select" display="checkboxes" multiple="true" label="Choose species" help="Select species to be included in the final alignment">
47          <options from_data_table="indexed_maf_files">
48            <column name="uid" index="1"/>
49            <column name="value" index="3"/>
50            <column name="name" index="3"/>
51            <filter type="param_value" ref="mafType" column="uid"/>
52            <filter type="multiple_splitter" column="name" separator=","/>
53          </options>
54        </param>
55      </when>
56    </conditional>
57    <conditional name="split_blocks_by_species_selector">
58      <param name="split_blocks_by_species" type="select" label="Split blocks by species" help="See the Split MAF blocks by Species tool for more information.">
59        <option value="split_blocks_by_species">Split by species</option>
60        <option value="dont_split_blocks_by_species" selected="true">Do not split</option>
61      </param>
62      <when value="dont_split_blocks_by_species">
63        <!-- do nothing here -->
64      </when>
65      <when value="split_blocks_by_species">
66        <param name="remove_all_gap_columns" type="select" label="Collapse empty alignment columns">
67          <option value="remove_all_gap_columns" selected="true">Collapse empty columns</option>
68          <option value="do_not_remove_all_gap_columns">Do not collapse</option>
69        </param>
70      </when>
71    </conditional>
72   </inputs>
73   <outputs>
74     <data format="maf" name="out_file1"/>
75   </outputs>
76   <tests>
77     <test>
78       <param name="input1" value="1.bed"/>
79       <param name="maf_source" value="cached"/>
80       <param name="mafType" value="ENCODE_TBA_hg17"/>
81       <param name="species" value="hg17,panTro1,baboon,marmoset,galago,rn3,mm6,rabbit,cow,canFam1,rfbat,shrew,armadillo,tenrec,monDom1,tetNig1,fr1,rheMac1,galGal2,xenTro1,danRer2,elephant,platypus,hedgehog,colobus_monkey,dusky_titi,owl_monkey,mouse_lemur"/>
82       <param name="split_blocks_by_species" value="dont_split_blocks_by_species"/>
83       <output name="out_file1" file="fsa_interval2maf.dat" />
84     </test>
85     <test>
86       <param name="input1" value="1.bed"/>
87       <param name="maf_source" value="user"/>
88       <param name="mafFile" value="fsa_interval2maf.dat"/>
89       <param name="species" value="hg17,panTro1,baboon,marmoset,galago,rn3,mm6,rabbit,cow,canFam1,rfbat,shrew,armadillo,tenrec,monDom1,tetNig1,fr1,rheMac1,galGal2,xenTro1,danRer2,elephant,platypus,hedgehog,colobus_monkey,dusky_titi,owl_monkey,mouse_lemur"/>
90       <param name="split_blocks_by_species" value="dont_split_blocks_by_species"/>
91       <output name="out_file1" file="fsa_interval2maf.dat" />
92     </test>
93     <test>
94       <param name="input1" value="1.bed" dbkey="hg18" ftype="bed"/>
95       <param name="maf_source" value="cached"/>
96       <param name="mafType" value="28_WAY_MULTIZ_hg18"/>
97       <param name="species" value="hg18,panTro2,mm8"/>
98       <param name="split_blocks_by_species" value="dont_split_blocks_by_species"/>
99       <output name="out_file1" file="interval2maf_3from28way.maf" />
100     </test>
101   </tests>
102   <help>
103**What it does**
104
105This tool takes genomic coordinates, superimposes them on multiple alignments (in MAF format) stored on the Galaxy site or from your history, and excises alignment blocks corresponding to each set of coordinates. Alignment blocks that extend past START and/or END positions of an interval are trimmed. Note that a single genomic interval may correspond to two or more alignment blocks.
106
107-----
108
109**Example**
110
111Here a single interval is superimposed on three MAF blocks. Blocks 1 and 3 are trimmed because they extend beyond boundaries of the interval:
112
113.. image:: ../static/images/maf_icons/interval2maf.png
114
115  </help>
116</tool>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。