forked from TASBE/TASBEFlowAnalytics
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget_fcs_color.m
More file actions
26 lines (22 loc) · 911 Bytes
/
get_fcs_color.m
File metadata and controls
26 lines (22 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function [data hdr] = get_fcs_color(fcsdat,fcshdr,color,suppress_errors)
% GET_FCS_COLOR: search through the fcshdr file to determine which column
% contains the color of interest, then return that column's data
% Copyright (C) 2010-2017, Raytheon BBN Technologies and contributors listed
% in the AUTHORS file in TASBE analytics package distribution's top directory.
%
% This file is part of the TASBE analytics package, and is distributed
% under the terms of the GNU General Public License, with a linking
% exception, as described in the file LICENSE in the TASBE analytics
% package distribution's top directory.
if nargin<4, suppress_errors = 0; end;
data = []; hdr = [];
for i=1:size(fcshdr.par,2)
if(strcmp(fcshdr.par(i).name,color))
data = fcsdat(:,i);
hdr = fcshdr.par(i);
return;
end;
end;
if ~suppress_errors
error('Could not find color %s in FCS data',color);
end