Skip to content

Commit ef7aedb

Browse files
authored
Merge pull request #66 from TASBE/fix/issue.429
Update to match fix of issue.429
2 parents cf98965 + 157ddec commit ef7aedb

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

02_flow_compensation/exercises.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@
103103

104104
colorpairfiles = {};
105105
CM = ColorModel(beadfile, blankfile, channels, colorfiles, colorpairfiles);
106-
CM=set_translation_plot(CM, true);
107-
CM=set_noise_plot(CM, true);
108106

109107
TASBEConfig.set('beads.beadModel','SpheroTech RCP-30-5A'); % Entry from BeadCatalog.xls matching your beads
110108
TASBEConfig.set('beads.beadBatch','Lot AA01, AA02, AA03, AA04, AB01, AB02, AC01, GAA01-R'); % Entry from BeadCatalog.xls containing your lot

03_flow_MEFL/exercises.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@
7272
colorpairfiles{2} = {channels{2}, channels{3}, channels{1}, [colordata '2012-03-12_mkate_EBFP2_EYFP_P3.fcs']};
7373
colorpairfiles{3} = {channels{2}, channels{1}, channels{3}, [colordata '2012-03-12_mkate_EBFP2_EYFP_P3.fcs']};
7474
CM = ColorModel(beadfile, blankfile, channels, colorfiles, colorpairfiles);
75-
CM=set_translation_plot(CM, true);
76-
CM=set_noise_plot(CM, true);
7775

7876
TASBEConfig.set('beads.beadModel','SpheroTech RCP-30-5A'); % Entry from BeadCatalog.xls matching your beads
7977
TASBEConfig.set('beads.beadBatch','Lot AA01, AA02, AA03, AA04, AB01, AB02, AC01, GAA01-R'); % Entry from BeadCatalog.xls containing your lot
@@ -86,8 +84,7 @@
8684
CM=set_dequantization(CM, 1); % important at low levels
8785
TASBEConfig.set('beads.rangeMin', 1); % Don't consider beads less than this 10^1 amount
8886
% Things we'll talk about in the next section...
89-
CM=set_translation_plot(CM, true);
90-
CM=set_translation_channel_min(CM,[2,2,2]);
87+
TASBEConfig.set('colortranslation.channelMinimum',[2,2,2]);
9188
% and build it!
9289
CM = resolve(CM); % plots1
9390

@@ -152,7 +149,7 @@
152149
fcs_scatter(DataFile('fcs', [colordata '2012-03-12_mkate_EBFP2_EYFP_P3.fcs']),'FITC-A','Pacific Blue-A',0,[0 0; 6 6],1); % Fig6
153150
% Notice that it's only nicely linear for the higher levels,
154151
% and that it's much smearier than our compensation controls
155-
% The first is what set_translation_channel_min is for
152+
% The first is what setting colortranslation.channelMinimum is for
156153

157154
% The way we partition is controlled by the colorpairfiles configuration:
158155
% colorpairfiles{1} = {channels{1}, channels{3}, channels{2}, [colordata '2012-03-12_mkate_EBFP2_EYFP_P3.fcs']};

template_colormodel/make_color_model.m

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@
77
blankfile = DataFile('fcs', [stem0312 'blank_P3.fcs']);
88

99
% Autodetect gating with an N-dimensional gaussian-mixture-model
10-
AGP = AutogateParameters();
11-
% Adjust AGP values if needed. The most common adjustments are below:
12-
% These are the most common values to adjust:
13-
% Match t
14-
%AGP.channel_names = {'FSC-A','SSC-A','FSC-H','FSC-W','SSC-H','SSC-W'};
10+
% Adjust gating values if needed. The most common adjustments are below:
11+
% Channels to be used:
12+
%TASBEConfig.set('gating.channelNames') = {'FSC-A','SSC-A','FSC-H','FSC-W','SSC-H','SSC-W'};
1513
% Typically two components: one tight single-cell component, one diffuse
1614
% non-cell or clump component. More complex distributions may need more.
17-
%AGP.k_components = 2;
18-
%AGP.selected_components = [1];
19-
autogate = GMMGating(blankfile,AGP,'plots');
15+
%TASBEConfig.set('gating.kComponents') = 2;
16+
%TASBEConfig.set('selectedComponents') = [1];
17+
autogate = GMMGating(blankfile);
2018

2119
% Create one channel / colorfile pair for each color
2220
channels = {}; colorfiles = {};
@@ -60,8 +58,6 @@
6058
% sizebeadfile = '../example_controls/180614_PPS6K_A02.fcs';
6159

6260
CM = ColorModel(beadfile, blankfile, channels, colorfiles, colorpairfiles, sizebeadfile);
63-
CM=set_translation_plot(CM, true);
64-
CM=set_noise_plot(CM, true);
6561

6662
TASBEConfig.set('beads.beadModel','SpheroTech RCP-30-5A'); % Entry from BeadCatalog.xls matching your beads
6763
TASBEConfig.set('beads.beadBatch','Lot AA01, AA02, AA03, AA04, AB01, AB02, AC01, GAA01-R'); % Entry from BeadCatalog.xls containing your lot
@@ -76,7 +72,7 @@
7672
%TASBEConfig.set('beads.peakThreshold', 200);
7773
CM=set_ERF_channel_name(CM, 'FITC-A');
7874
% Ignore channel data for ith channel if below 10^[value(i)]
79-
CM=set_translation_channel_min(CM,[2,2,2]);
75+
TASBEConfig.set('colortranslation.channelMinimum',[2,2,2]);
8076

8177
% Configuration for size beads, if used
8278
% TASBEConfig.set('sizebeads.beadModel','SpheroTech PPS-6K'); % Entry from BeadCatalog.xls matching your beads

0 commit comments

Comments
 (0)