root/galaxy-central/tools/filters/gff/gff_filter_by_attribute.xml @ 2

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

import galaxy-central

行番号 
1<tool id="gff_filter_by_attribute" name="Filter GFF file by attribute" version="0.1">
2  <description>using simple expressions</description>
3  <command interpreter="python">
4    gff_filter_by_attribute.py $input $out_file1 "$attribute_type" "$attribute_name" "$cond"
5  </command>
6  <inputs>
7    <param format="gff" name="input" type="data" label="Filter" help="Query missing? See TIP below."/>
8    <param name="attribute_name" type="select" label="Attribute name" help="">
9        <options from_dataset="input">
10          <column name="name" index="8"/>
11          <column name="value" index="8"/>
12          <filter type="attribute_value_splitter" pair_separator=";" column="8"/>
13        </options>
14    </param>
15    <param name="attribute_type" type="select" label="Attribute type">
16      <option value="float">Float</option>
17      <option value="int">Integer</option>
18      <option value="str">String</option>
19    </param>
20    <param name="cond" size="40" type="text" value=">0" label="With following condition" help="Double equal signs, ==, must be used as shown above. To filter for an arbitrary string, use the Select tool.">
21      <validator type="empty_field" message="Enter a valid filtering condition, see syntax and examples below."/>
22    </param>
23  </inputs>
24  <outputs>
25    <data format="input" name="out_file1" metadata_source="input"/>
26  </outputs>
27  <tests>
28    <test>
29        <param name="input" value="gff_filter_attr_in1.gff"/>
30        <param name="attribute_name" value="conf_lo"/>
31        <param name="attribute_type" value="float"/>
32        <param name="cond" value=">0"/>
33        <output name="out_file1" file="gff_filter_by_attribute_out1.gff"/>
34    </test>
35  </tests>
36
37  <help>
38
39.. class:: warningmark
40
41Double equal signs, ==, must be used as *"equal to"* (e.g., **c1 == 'chr22'**)
42
43.. class:: infomark
44
45**TIP:** Attempting to apply a filtering condition may throw exceptions if the data type (e.g., string, integer) in every line of the attribute being filtered is not appropriate for the condition (e.g., attempting certain numerical calculations on strings).  If an exception is thrown when applying the condition to a line, that line is skipped as invalid for the filter condition.  The number of invalid skipped lines is documented in the resulting history item as a "Condition/data issue".
46
47.. class:: infomark
48
49**TIP:** If your data is not TAB delimited, use *Text Manipulation-&gt;Convert*
50
51-----
52
53**Syntax**
54
55The filter tool allows you to restrict the dataset using simple conditional statements.
56
57- Make sure that multi-character operators contain no white space ( e.g., **&lt;=** is valid while **&lt; =** is not valid )
58- When using 'equal-to' operator **double equal sign '==' must be used** ( e.g., **attribute_name=='chr1'** )
59- Non-numerical values must be included in single or double quotes ( e.g., **attribute_name=='XX22'** )
60
61</help>
62</tool>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。