annotate tools/extract/phastOdds/phastOdds_tool.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="phastOdds_for_intervals" name="Compute phastOdds score" version="1.0.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>for each interval</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">get_scores_galaxy.py $per_col ${score_file}.h5 ${score_file}.mapping.bed $input $output ${input.metadata.chromCol} ${input.metadata.startCol} ${input.metadata.endCol}</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param format="interval" name="input" type="data" label="Interval file">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <validator type="unspecified_build" message="Unspecified build, this tool works with data from genome builds hg17. Click the pencil icon in your history item to set the genome build."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <validator type="dataset_metadata_in_file" filename="phastOdds.loc" metadata_name="dbkey" metadata_column="0" message="Sequences are currently unavailable for the specified build." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <param name="score_file" type="select" label="Available datasets">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <options from_file="phastOdds.loc">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <column name="name" index="1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <column name="value" index="2"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <column name="dbkey" index="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <filter type="data_meta" ref="input" key="dbkey" column="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </options>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <param name="per_col" type="boolean" label="Standardize" help="Standardizes the score to be per alignment column" checked="yes" truevalue="-p" falsevalue=""/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <data format="interval" name="output" metadata_source="input"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <requirement type="python-module">numpy</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <requirement type="python-module">tables</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 </requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <param name="input" value="4.bed" dbkey="hg17" ftype="bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <param name="score_file" value="/galaxy/data/phastOdds_precomputed/encode_SEP-2005_tba.v2_phastOdds" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <param name="per_col" value="true" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <output name="output" file="phastOdds_tool_out.interval" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 This tool currently only works with interval data from genome build hg17.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 This tool assumes that the input dataset is in interval format and contains at least a chrom column, a start column and an end column. These 3 columns can be dispersed throughout any number of other data columns.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 **Syntax**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 Append a column to each line of an interval file containing the phastOdds score for that interval.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 If your original data has the following format:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 +-----+-----+---+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 |chrom|start|end|
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 +-----+-----+---+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 and you choose to compute phastOdds scores, your output will look like this:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 +-----+-----+---+-----+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 |chrom|start|end|score|
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 +-----+-----+---+-----+
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 </tool>