Changeset 151 for prdatasets/flowcyto.m
- Timestamp:
- 01/11/20 00:14:42 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prdatasets/flowcyto.m
r150 r151 25 25 26 26 if nargin < 1 || isempty(n) 27 n = 1;27 n = 0; 28 28 end 29 29 30 if any(n< 1) || any(n>4)30 if any(n<0) || any(n>4) 31 31 error('Dataset number should be larger than 0 and smaller than 5') 32 32 end 33 33 34 d = pr_getdata('http://prtools.tudelft.nl/prdatasets/FlowCyto_sort.mat',5); 35 36 a = cell(1,numel(n)); 37 for j=1:numel(n) 38 x = prdataset(d{n(j)}); 39 x = setname(x(:,2:255),['Flow Cytometry ' num2str(n(j))]); 40 desc = ['These datasets are based on 612 FL3-A DNA flowcytometer histograms' ... 41 'from breast cancer tissues in 256 resolution. The initial data have been' ... 42 'acquired by M. Nap and N. van Rodijnen of the Atrium Medical Center in' ... 43 'Heerlen, The Netherlands, during 2000-2004, using tubes 3-6 of a DACO' ... 44 'Galaxy flowcytometer (N = 1-4). Histograms are labeled in 3 classes:' ... 45 'aneuploid (335 patients), diploid (131) and tetraploid (146). The first' ... 46 'and the last bin (1 and 256) are set to 0, as they contsin noise. After' ... 47 'that histograms are normalized (sum to one) resulting in a dataset with' ... 48 '254 features.']; 49 ref = {['']}; 50 x = setprior(x,getprior(x,0)); 51 x = setuser(x,desc,'desc'); 52 x = setuser(x,ref,'ref'); 53 a{j} = x; 34 a = pr_loadmatfile(['flowcyto_' num2str(n)]); 35 if isempty(a) 36 d = pr_getdata('http://prtools.tudelft.nl/prdatasets/FlowCyto_sort.mat',5); 37 matfile = fullfile(fullfile(fileparts(which(mfilename)),'data'),'flowcyto'); 38 b = []; 39 for i=1:4 40 a = setname(prdataset(d{i}),['Flow Cytometry Tube_' num2str(i+2)]); 41 save([matfile '_' num2str(i)],'a'); 42 b = [b a]; 43 end 44 a = setname(b,'Flow Cytometry'); 45 save([matfile '_0'],'a'); 46 a = pr_loadmatfile(['flowcyto_' num2str(n)]); 54 47 end 55 56 if numel(a) == 157 a = a{1};58 end59 60
Note: See TracChangeset
for help on using the changeset viewer.