|
2 | 2 | Configuration of test data |
3 | 3 | """ |
4 | 4 | import numpy as np |
| 5 | +import os |
5 | 6 | import warnings |
6 | 7 | import flowkit as fk |
7 | 8 |
|
|
13 | 14 | comp_file_path = "data/comp_complete_example.csv" |
14 | 15 | fcs_2d_file_path = "data/test_data_2d_01.fcs" |
15 | 16 | fcs_index_sorted_path = "data/index_sorted/index_sorted_example.fcs" |
16 | | -sample_id_with_spill = "101_DEN084Y5_15_E01_008_clean.fcs" |
17 | 17 | csv_8c_comp_file_path = "data/8_color_data_set/den_comp.csv" |
18 | 18 | csv_8c_comp_null_channel_file_path = "data/8_color_data_set/den_comp_null_channel.csv" |
19 | | - |
| 19 | +spectral_data_dir = "data/spectral_data" |
20 | 20 |
|
21 | 21 | fcs_file_paths = ["data/100715.fcs", "data/109567.fcs", "data/113548.fcs"] |
22 | 22 |
|
|
28 | 28 | test_samples_base_set = fk.load_samples(fcs_file_paths) |
29 | 29 | test_samples_8c_full_set = fk.load_samples("data/8_color_data_set/fcs_files") |
30 | 30 | test_samples_8c_full_set_dict = {s.id: s for s in test_samples_8c_full_set} |
| 31 | +sample_id_with_spill = "101_DEN084Y5_15_E01_008_clean.fcs" |
31 | 32 | sample_with_spill = test_samples_8c_full_set_dict[sample_id_with_spill] |
32 | 33 |
|
33 | 34 | with warnings.catch_warnings(): |
|
200 | 201 | spill01_data = np.array([[1, 0.02, 0.06], [0.11, 1, 0.07], [0.09, 0.01, 1]]) |
201 | 202 | comp_matrix_01 = fk.Matrix(spill01_data, spill01_detectors, spill01_fluoros) |
202 | 203 |
|
| 204 | +# |
| 205 | +# Spectral Matrix |
| 206 | +# |
| 207 | +spectral_event_data = np.load(os.path.join(spectral_data_dir, "spectral_raw_events.npy")) |
| 208 | +spectral_fluoro_indices = np.load(os.path.join(spectral_data_dir, "spectral_fluoro_indices.npy")) |
| 209 | +spectral_all_detectors = [ |
| 210 | + 'B510-A', 'B537-A', 'B602-A', 'B660-A', 'B675-A', 'B710-A', 'B750-A', 'B810-A', |
| 211 | + 'R675-A', 'R710-A', 'R780-A', 'UV379-A', 'UV446-A', 'UV515-A', 'UV585-A', 'UV610-A', |
| 212 | + 'UV660-A', 'UV736-A', 'UV809-A', 'V427-A', 'V450-A', 'V510-A', 'V540-A', 'V576-A', 'V595-A', |
| 213 | + 'V660-A', 'V710-A', 'V750-A', 'V785-A', 'YG585-A', 'YG602-A', 'YG730-A', 'YG780-A', 'B576-A', |
| 214 | + 'R660-A', 'R680-A', 'R730-A', 'UV540-A', 'UV695-A', 'V470-A', 'V615-A', 'V680-A', |
| 215 | + 'V845-A', 'YG660-A', 'YG670-A', 'YG695-A', 'YG750-A', 'YG825-A' |
| 216 | +] |
| 217 | +spectral_true_detectors = [ |
| 218 | + 'B510-A', 'B537-A', 'B602-A', 'B660-A', 'B675-A', 'B710-A', 'B750-A', 'B810-A', |
| 219 | + 'R675-A', 'R710-A', 'R780-A', 'UV379-A', 'UV446-A', 'UV515-A', 'UV585-A', 'UV610-A', |
| 220 | + 'UV660-A', 'UV736-A', 'UV809-A', 'V427-A', 'V450-A', 'V510-A', 'V540-A', 'V576-A', 'V595-A', |
| 221 | + 'V660-A', 'V710-A', 'V750-A', 'V785-A', 'YG585-A', 'YG602-A', 'YG730-A', 'YG780-A' |
| 222 | +] |
| 223 | +spectral_sample_labels = [ |
| 224 | + 'Time', 'FSC-A', 'FSC-W', 'FSC-H','SSC-A', 'SSC-W', 'SSC-H', |
| 225 | + 'UV379-A', 'UV446-A', 'UV515-A', 'UV540-A', 'UV585-A', 'UV610-A', 'UV660-A', 'UV695-A', |
| 226 | + 'UV736-A', 'UV809-A', 'V427-A', 'V450-A', 'V470-A', 'V510-A', 'V540-A', 'V576-A', |
| 227 | + 'V595-A', 'V615-A', 'V660-A', 'V680-A', 'V710-A', 'V750-A', 'V785-A', 'V845-A', |
| 228 | + 'B510-A', 'B537-A', 'B576-A', 'B602-A', 'B660-A', 'B675-A', 'B710-A', 'B750-A', |
| 229 | + 'B810-A', 'YG585-A', 'YG602-A', 'YG660-A', 'YG670-A', 'YG695-A', 'YG730-A', 'YG750-A', |
| 230 | + 'YG780-A', 'YG825-A', 'R660-A', 'R675-A', 'R680-A', 'R710-A', 'R730-A', 'R780-A' |
| 231 | +] |
| 232 | +spectral_sample = fk.Sample( |
| 233 | + spectral_event_data, sample_id='spectral_sample.fcs', channel_labels=spectral_sample_labels |
| 234 | +) |
| 235 | +spectral_comp_matrix = np.load(os.path.join(spectral_data_dir, "spectral_comp_matrix.npy")) |
| 236 | +spectral_truth_comp_events = np.load(os.path.join(spectral_data_dir, "truth", "spectral_comp_events.npy")) |
| 237 | + |
203 | 238 | # pnn, pns lists |
204 | 239 |
|
205 | 240 | detectors_8c = [ |
|
0 commit comments