0
|
1 <?xml version="1.0"?>
|
|
2
|
|
3 <tool id="filter_by_list_1" name="Filter a tabular file">
|
|
4 <description>against a list of desired column values</description>
|
|
5 <version_string>echo 1.0.0</version_string>
|
|
6 <command interpreter="perl">filter_by_list $case_sensitive $input_table $file_of_names $filtered_output_table $num_header_lines</command>
|
|
7 <inputs>
|
|
8 <param format="tabular" name="input_table" type="data" label="Text table to filter"/>
|
|
9 <param format="text" name="file_of_names" type="data" label="Text file with target names" help="Input lines with any of these names in any column will be retained"/>
|
|
10 <param name="case_sensitive" type="boolean" value="True" label="Case sensitive?"/>
|
|
11 <param name="num_header_lines" type="integer" value="1" min="-1" max="100" label="Number of header lines" help="These will be copied to the output verbatim, without checking for names match. Specifying -1 will copy all lines starting with a pound sign (#)"/>
|
|
12 </inputs>
|
|
13 <outputs>
|
|
14 <data name="filtered_output_table" format="tabular" type="data" label="Subset of table matching specific names"/>
|
|
15 </outputs>
|
|
16
|
|
17 <tests/>
|
|
18
|
|
19 <help>
|
|
20 This tool retains lines of an input tabular file that have a column value matching any of the values in the "names" file. This is useful for example to
|
|
21 report only a subset of an HGVS or BED file corresponding to a set of genes of interest. The names file should have one name per line. If you are looking to
|
|
22 only match one name, it might be just as easy to use the generic Galaxy tool "Select lines that match an expression".
|
|
23 </help>
|
|
24
|
|
25 </tool>
|