0
|
1 <tool id="auto_collapse_populations" name="Collapse populations automatically" version="1.0">
|
|
2 <description>based on quartile binning from FLOCK results.</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="0.17.1">pandas</requirement>
|
|
5 </requirements>
|
|
6 <stdio>
|
|
7 <exit_code range="1:" />
|
|
8 </stdio>
|
|
9 <command><![CDATA[
|
|
10 python $__tool_directory__/auto_collapse_pops.py -o "${output}" -i "${input}" -p "${profile}" -r "${report}"
|
|
11 ]]>
|
|
12 </command>
|
|
13 <inputs>
|
|
14 <param format="flowclr" name="input" type="data" label="FLOCK or Cross-Sample output file"/>
|
|
15 <param format="flowscore" name="profile" type="data" label="Population score profiles from FLOCK"/>
|
|
16 </inputs>
|
|
17 <outputs>
|
|
18 <data format="flowclr" name="output" label="Auto-collapsed pops in ${input.name}"/>
|
|
19 <data format="tabular" name="report" label="Auto-collapse report for ${input.name} with ${profile.name}"/>
|
|
20 </outputs>
|
|
21 <tests>
|
|
22 <test>
|
|
23 <param name="input" value="input.flowclr"/>
|
|
24 <param name="profile=" value="profile.flowscore"/>
|
|
25 <param name="report" value="report.txt"/>
|
|
26 <output name="output" file="output.flowclr"/>
|
|
27 </test>
|
|
28 </tests>
|
|
29 <help><![CDATA[
|
|
30 This tool automatically collapses populations together based on FLOCK score profiles.
|
|
31
|
|
32 -----
|
|
33
|
|
34 .. class:: warningmark
|
|
35
|
|
36 *FLOCK score profiles are assigned based on quartile binning of the data. As always, use this tool with caution and be critical of your results*
|
|
37
|
|
38 -----
|
|
39
|
|
40 **Input**
|
|
41
|
|
42 FLOCK or Cross Sample output - a table of the fluorescence intensities for each event and the population associated with each, as well as the file containing the score profiles for each FLOCK population.
|
|
43
|
|
44 **Output**
|
|
45
|
|
46 The input file with selected populations replaced by the indicated population. This tool also generates a report.
|
|
47
|
|
48 -----
|
|
49
|
|
50 **Example**
|
|
51
|
|
52 *Input* - fluorescence intensities per marker and population ID per event::
|
|
53
|
|
54 Marker1 Marker2 Marker3 Population
|
|
55 34 45 12 1
|
|
56 33 65 10 5
|
|
57 19 62 98 2
|
|
58 12 36 58 3
|
|
59
|
|
60 *Population profile file*::
|
|
61
|
|
62 Population_ID Marker1 Marker2 Marker3 Count Percentage
|
|
63 1 2 2 3 3885 6.44
|
|
64 2 1 3 4 2774 4.62
|
|
65 3 2 2 3 2151 3.59
|
|
66 4 1 3 2 1207 2.01
|
|
67
|
|
68 *Output* - fluorescence intensities per marker and population ID per event::
|
|
69
|
|
70 Marker1 Marker2 Marker3 Population
|
|
71 34 45 12 1
|
|
72 33 65 10 4
|
|
73 19 62 98 2
|
|
74 12 36 58 1
|
|
75
|
|
76 *Output* - fluorescence intensities per marker and population ID per event::
|
|
77
|
|
78 New_Population Former_Populations Marker1 Marker2 Marker3
|
|
79 1 1, 3 2 2 3
|
|
80 2 2 1 3 4
|
|
81 3 4 1 3 2
|
|
82 4 5, 8, 12 3 1 1
|
|
83 ]]>
|
|
84 </help>
|
|
85 </tool>
|