annotate ttest/stats.xml @ 11:cd4c13ae11ce

modify
author jingchunzhu
date Fri, 31 Jul 2015 13:32:25 -0700
parents a04e3c59e117
children fd8529cd1564
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
jingchunzhu
parents: 9
diff changeset
1 <tool id="ucscCancerBrowserStats" description="t-tests of Difference in genomic data" name="Difference between categories (t-test)" version="0.0.1">
0
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
2 <command interpreter="python">
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
3 stats.py $genomicMatrix $clinicalFeatures $outFile -a="${category1}" -b="${category2}"
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
4 </command>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
5 <inputs>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
6 <param format="tabular" name="genomicMatrix" type="data" label="Genomic Matrix"/>
11
jingchunzhu
parents: 9
diff changeset
7 <param format="tabular" name="clinicalFeatures" type="data" label="Phenotype Matrix"/>
0
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
8 <param type="text" name="category1" label="Category 1" optional="false"/>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
9 <param type="text" name="category2" label="Category 2" optional="false"/>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
10 </inputs>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
11 <outputs>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
12 <data format="tabular" name="outFile" />
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
13 </outputs>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
14 <requirements>
9
a04e3c59e117 fix bad xml file
jingchunzhu
parents: 0
diff changeset
15 <requirement type="package" version="1.0" >cancerBrowserStats</requirement>
0
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
16 </requirements>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
17 <tests>
11
jingchunzhu
parents: 9
diff changeset
18 <param name="genomicMatrix" value="sample.genomic.matrix.txt" />
jingchunzhu
parents: 9
diff changeset
19 <param name="clinicalMatrix" value="sample.clinical.matrix.txt" />
0
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
20 <param name="category1" value="A"/>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
21 <param name="category2" value="B"/>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
22 <output name="outFile" value="sample.stats.output.txt"/>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
23 </tests>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
24 <help>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
25
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
26 This tool performs statistical tests found in the UCSC Cancer Genomics
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
27 Browser. The input data is a genomic matrix (containing genomic data,
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
28 with rows representing genes or probes and columns representing
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
29 samples or patients), a clinical matrix of two (or more) columns
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
30 assigning categorical values to the samples, and two categorical
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
31 values of interest. The tool identifies the samples corresponding to
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
32 each categorical value, then identifies the columns in the genomic
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
33 matrix corresponding to those sets of samples, which identifies two
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
34 groups of columns. For each row in the genomic matrix, it extracts
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
35 the value for those two sets of columns, performs a t-test on the two
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
36 sets of values, and returns the result for the row. Any values for
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
37 any columns NOT pertaining to one of the categorical values of
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
38 interest are ignored.
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
39
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
40 The user runs this tool with th following steps:
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
41
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
42
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
43 1. Specify a genomic matrix. The expected format is with rows representing
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
44 genes and columns representing samples, and the first line contains sample
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
45 names.
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
46
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
47 2. Specify a clinical matrix. Here, rows indicate samples, columns
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
48 indicate clinical features, and the header row contains feature names.
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
49 The first column MUST indicate the sample names, and MUST correspond
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
50 to the column names of the genomic matrix. The clinical feature of
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
51 interest MUST be in the second column. Any other columns will be
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
52 ignored.
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
53
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
54
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
55 3. Indicate two clinical values that you want to use for defining the
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
56 two groups. For example, the two groups could be "Red group" and
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
57 "Green group", 0 and 1, or whatever.
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
58
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
59 The output indicates, for each row, the t-statistic reporting on the
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
60 difference between the two groups of columns (as specified by the two
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
61 clinical values), the p-value corresponding to that t-statistic, the
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
62 median value for each group, and the difference between the medians. If it
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
63 cannot calculate these values, it returns a vector of NAs.
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
64
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
65 For example, given the following genomic matrix for (1)::
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
66
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
67 Gene 1 2 3 4 5 6 7 8 9 10
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
68 G1 2.0 2.2 3.2 1.1 5.1 8.1 3.2 1.1 8.1 0.2
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
69 G2 0.1 8.2 9.1 4.2 6.1 4.9 3.9 2.3 1.1 0.2
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
70
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
71 and given the following clinical matrix for (2)::
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
72
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
73 sample_id Value
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
74 1 A
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
75 2 A
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
76 3 B
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
77 4 C
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
78 5 B
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
79 6 B
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
80 7 A
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
81 8 A
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
82 9 B
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
83 10 A
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
84
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
85 and given A for Category 1 and B for Category 2
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
86
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
87 the tool will assemble the following two groups of values::
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
88
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
89 G1 A:(2.0, 2.2, 3.2, 1.1, 0.2) B:(3.2, 5.1, 8.1, 8.1)
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
90 G2 A:(0.1, 8.2, 3.9, 2.3, 0.2) B:(9.1, 6.1, 4.9, 1.1)
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
91
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
92 Note that the values for sample_id 4 do not appear, because it has a Value
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
93 of C in the second column, which is neither A nor B.
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
94
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
95 And it will return the output::
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
96
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
97 Gene Statistic pValue Median1 Median2 Delta
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
98 G1 -4.168999 0.004194 2.000000 6.600000 -4.600000
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
99 G2 -1.198486 0.269724 2.300000 5.500000 -3.200000
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
100
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
101
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
102 </help>
12bb38e187b9 Uploaded, initial check-in
melissacline
parents:
diff changeset
103 </tool>