annotate src/README @ 1:7eab80f86779 draft

add FLOCK
author immport-devteam
date Mon, 27 Feb 2017 13:26:09 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
1 This package contains R code for converting and transforming a binary
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
2 FCS file, using the FCSTrans software, and the C code for running the
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
3 flock1 and flock2 population identification software.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
4
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
5 src - contains the C code for flock1, flock2 and cent_adjust
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
6 bin - contains the compiled C code for flock1, flock2 and cent_adjust,
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
7 plus the R code for using the FCSTrans algorithm for file
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
8 conversion and data transformation.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
9 doc - documentation for FCSTrans and FLOCK algorithms
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
10 example - sample data and output from FCSTrans and FLOCK
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
11
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
12 To run this software sucessfully the code assumes the software was installed
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
13 in the /usr/local/flock directory and that R, plus the Bioconductor flowCore
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
14 module has been installed. If you use the ipconvert.sh shell script, you
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
15 may need to adjust the location of the RScript executable and the location
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
16 of the FCSTrans.R code by editing the shell script.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
17
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
18 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
19 # Overview
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
20 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
21 ImmPort-FLOCK
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
22
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
23 FLOCK (FLOw Clustering without K), an automated population discovery tool for
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
24 multidimensional FCM data was designed to specifically take into account the
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
25 unique feature of FCM data and produce objective segregation of cell
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
26 populations.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
27
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
28 FLOCK parameter settings can be customized by defining Bins and Density
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
29 Threshold. The number of bins is an integer specifying the number of
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
30 equal-sized regions the data will be partitioned into on each axis. Increasing
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
31 the number of bins increases the sensitivity to detect rare populations but
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
32 may also result in single populations being divided. Density Threshold is the
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
33 cut-off value to separate the dense regions from background. It is a floating
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
34 point number that helps define population centers; increasing the threshold
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
35 may help separate major populations but could cause the algorithm to overlook
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
36 rare populations.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
37
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
38 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
39 # Compiling C code
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
40 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
41 cd bin
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
42 cc -o flock1 ../src/flock1.c ../src/find_connected.c -lm
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
43 cc -o flock2 ../src/flock2.c -lm
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
44 cc -o cent_adjust ../src/cent_adjust.c -lm
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
45
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
46 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
47 # FCSTrans
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
48 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
49 A shell script named ipconvert.sh is included that runs the FCSTrans R
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
50 code for converting and transforming a binary FCS file. The output consists
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
51 of one text file containing the transformed channel intensity values and
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
52 another file containing a list of the FCS parameters.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
53
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
54 cd bin
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
55 /usr/local/flock/bin/ipconvert.sh ../example/data/FCS2.fcs
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
56 /usr/local/flock/bin/ipconvert.sh ../example/data/FCS3.fcs
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
57
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
58 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
59 # Running flock1 or flock2
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
60 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
61 Running the FLOCK1 and FLOCK2 algorithms generate 8 output files that have
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
62 generic file names. For this reason, it is recommended that one output
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
63 directory be created for one input file to the program.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
64
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
65 cd example/output/FCS2
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
66 /usr/local/flock/bin/flock1 ../../data/FCS2.txt
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
67
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
68 cd example/output/FCS3
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
69 /usr/local/flock/bin/flock2 ../../data/FCS3.txt
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
70
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
71 Files created: MFI.txt, percentage.txt, population_id.txt, profile.txt,
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
72 flock_results.txt, coordinates.txt, population_center.txt
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
73 and percentage.txt
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
74
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
75 Usage Information for FLOCK1
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
76 ----------------------------------------------------------------------------
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
77 basic mode: flock1 fcs.txt
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
78 advanced_ mode: flock1 fcs.txt num_bin density_index max_num_pop
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
79
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
80 Usage Information for FLOCK2
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
81 ----------------------------------------------------------------------------
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
82 basic mode: flock data_file
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
83 advanced mode 0 (specify maximum # of pops): flock data_file max_num_pop
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
84 advanced mode 1 (without # of pops): flock data_file num_bin density_index
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
85 advanced mode 2 (specify # of pops): flock data_file num_bin density_index
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
86 number_of_pop
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
87 advanced mode 3 (specify both # of pops): flock data_file num_bin density_index
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
88 number_of_pop max_num_pop
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
89
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
90 FLOCK Output Files
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
91 ----------------------------------------------------------------------------
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
92 coordinates.txt:
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
93 Output is the intensity values for each marker and event
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
94
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
95 flock_results.txt:
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
96 A combination of the input file, event identifiers and population
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
97 identifiers.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
98
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
99 MFI.txt:
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
100 Provides the mean fluorescence intensity for each population for each
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
101 marker/parameter
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
102
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
103 population_id.txt:
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
104 Contains population identifiers (i.e, values from [1 to n] where n is
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
105 the population assigned to the corresponding events in the input data
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
106 file, one identifier per row.)
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
107
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
108 population_center.txt:
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
109 Contains the centroid coordinates for each identified population
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
110
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
111 percentage.txt:
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
112 Includes the population identifiers and percentage of events within that
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
113 population (relative to the whole data file)
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
114
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
115 profile.txt:
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
116 Displays an expression profile, where the approximate expression level
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
117 for each marker is assigned a numeric value from 1-4, for each identified
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
118 population
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
119
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
120 fcs_properties.txt:
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
121 Contains the number of events, number of populations, and number of
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
122 markers, as well as the algorithm parameters used in the analysis
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
123
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
124 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
125 # Running cent_adjust
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
126 #############################################################################
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
127 Running the cent_adjust algorithm generates 4 output files that have
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
128 generic file names. For this reason, it is recommened that one output
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
129 directory be created for one input file to the program.
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
130
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
131 mkdir example/output/FCS2/cent_adjust
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
132 cd example/output/FCS2/cent_adjust
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
133 /usr/local/flock/bin/cent_adjust ../population_center.txt ../coordinates.txt
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
134
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
135 Files created: MFI.txt, percentage.txt, population_id.txt and profile.txt
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
136
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
137 Usage Information for cent_adjust
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
138 ----------------------------------------------------------------------------
7eab80f86779 add FLOCK
immport-devteam
parents:
diff changeset
139 basic mode: cent_adjust input_center input_data_file