Skip to content

Commit 6e8358e

Browse files
fixed bug in column mapping for hover cols
1 parent d255224 commit 6e8358e

File tree

1 file changed

+44
-45
lines changed

1 file changed

+44
-45
lines changed

scripts/config/config_20251118_TEST_INPUTS.py

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Config:
4646
SPC_ANALYSIS_DIR = Path("/nemo/stp/hts/working/Joe_Tuersley/code/spc-cosine-analysis/analysis/20251122_HaCaT_gsk_all_no_CRISPR_no_HTC_V1_no_CCA_V1_ResNet18/spc_analysis_20251124_174723")
4747

4848
# CellProfiler Analysis Directory
49-
CP_ANALYSIS_DIR = Path("/nemo/project/proj-prosperity/hts/raw/projects/20251111_gsk_prosperity_all_datasets/cellprofiler/processed_data/20251120_124820_from_well_results")
49+
CP_ANALYSIS_DIR = Path("/nemo/project/proj-prosperity/hts/raw/projects/20251111_gsk_prosperity_all_datasets/cellprofiler/processed_data/20251125_152508_results")
5050

5151
THUMBNAIL_DIRS = [
5252
# CRISPR genome
@@ -65,7 +65,7 @@ class Config:
6565
SPC_ANALYSIS_DIR = Path("/Volumes/hts/working/Joe_Tuersley/code/spc-cosine-analysis/analysis/20251122_HaCaT_gsk_all_no_CRISPR_no_HTC_V1_no_CCA_V1_ResNet18/spc_analysis_20251124_174723")
6666

6767
# CellProfiler Analysis Directory
68-
CP_ANALYSIS_DIR = Path("/Volumes/proj-prosperity/hts/raw/projects/20251111_gsk_prosperity_all_datasets/cellprofiler/processed_data/20251120_124820_from_well_results")
68+
CP_ANALYSIS_DIR = Path("/Volumes/proj-prosperity/hts/raw/projects/20251111_gsk_prosperity_all_datasets/cellprofiler/processed_data/20251125_152508_results")
6969

7070
THUMBNAIL_DIRS = [
7171
# CRISPR genome
@@ -205,52 +205,51 @@ class Config:
205205

206206
# --- SPC HOVER COLUMNS ---
207207
SPC_HOVER_COLUMNS = [
208-
'plate', 'well', 'treatment', 'SMILES',
209-
'compound_name', 'compound_uM', 'PP_ID', 'PP_ID_uM', 'library',
210-
'moa_first', 'moa_truncated_10', 'moa_compound_uM',
211-
'annotated_target_description_truncated_10', 'target_description_truncated_10',
212-
'chemical_description', 'manual_annotation', 'compound_type',
213-
'landmark_label', 'is_landmark', 'valid_for_phenotypic_makeup',
214-
'cosine_distance_from_dmso', 'mad_cosine',
215-
# 1st Landmark
216-
'closest_landmark_moa_first', 'closest_landmark_PP_ID', 'closest_landmark_PP_ID_uM',
217-
'closest_landmark_distance', 'closest_landmark_annotated_target_description_truncated_10',
218-
'closest_landmark_manual_annotation', 'closest_landmark_SMILES',
219-
# 2nd Landmark - ADDED target description
220-
'second_closest_landmark_moa_first', 'second_closest_landmark_PP_ID_uM',
221-
'second_closest_landmark_distance',
222-
'second_closest_landmark_annotated_target_description_truncated_10',
223-
'second_closest_landmark_manual_annotation',
224-
# 3rd Landmark - ADDED target description
225-
'third_closest_landmark_moa_first', 'third_closest_landmark_PP_ID_uM',
226-
'third_closest_landmark_distance',
227-
'third_closest_landmark_annotated_target_description_truncated_10',
228-
'third_closest_landmark_manual_annotation',
229-
'gene_description',
208+
'plate', 'well', 'treatment', 'SMILES',
209+
'compound_name', 'compound_uM', 'PP_ID', 'PP_ID_uM', 'library',
210+
'moa_first', 'moa_truncated_10', 'moa_compound_uM',
211+
'annotated_target_description_truncated_10', 'target_description_truncated_10',
212+
'chemical_description', 'compound_type', 'manual_annotation', # compound_type FIRST for SPC!
213+
'is_landmark', # REMOVED landmark_label and valid_for_phenotypic_makeup
214+
'cosine_distance_from_dmso', 'mad_cosine',
215+
# 1st Landmark
216+
'closest_landmark_moa_first', 'closest_landmark_PP_ID', 'closest_landmark_PP_ID_uM',
217+
'closest_landmark_distance', 'closest_landmark_annotated_target_description_truncated_10',
218+
'closest_landmark_manual_annotation', 'closest_landmark_SMILES',
219+
# 2nd Landmark
220+
'second_closest_landmark_moa_first', 'second_closest_landmark_PP_ID_uM',
221+
'second_closest_landmark_distance',
222+
'second_closest_landmark_annotated_target_description_truncated_10',
223+
'second_closest_landmark_manual_annotation',
224+
# 3rd Landmark
225+
'third_closest_landmark_moa_first', 'third_closest_landmark_PP_ID_uM',
226+
'third_closest_landmark_distance',
227+
'third_closest_landmark_annotated_target_description_truncated_10',
228+
'third_closest_landmark_manual_annotation',
230229
]
231230

232231
CP_HOVER_COLUMNS = [
233-
'plate', 'well', 'treatment', 'SMILES',
234-
'compound_name', 'compound_uM', 'PP_ID', 'PP_ID_uM', 'library',
235-
'moa_first', 'moa_truncated_10', 'moa_compound_uM',
236-
'target_description_truncated_10',
237-
'chemical_description', 'manual_annotation', 'compound_type',
238-
'is_landmark', 'valid_for_phenotypic_makeup',
239-
'cosine_distance_from_dmso', 'mad_cosine',
240-
# 1st Landmark
241-
'closest_landmark_moa_first', 'closest_landmark_PP_ID', 'closest_landmark_PP_ID_uM',
242-
'closest_landmark_distance', 'closest_landmark_annotated_target_description_truncated_10',
243-
'closest_landmark_manual_annotation', 'closest_landmark_SMILES',
244-
# 2nd Landmark - ADDED target description
245-
'second_closest_landmark_moa_first', 'second_closest_landmark_PP_ID_uM',
246-
'second_closest_landmark_distance',
247-
'second_closest_landmark_annotated_target_description_truncated_10',
248-
'second_closest_landmark_manual_annotation',
249-
# 3rd Landmark - ADDED target description
250-
'third_closest_landmark_moa_first', 'third_closest_landmark_PP_ID_uM',
251-
'third_closest_landmark_distance',
252-
'third_closest_landmark_annotated_target_description_truncated_10',
253-
'third_closest_landmark_manual_annotation',
232+
'plate', 'well', 'treatment', 'SMILES',
233+
'compound_name', 'compound_uM', 'PP_ID', 'PP_ID_uM', 'library',
234+
'moa_first', 'moa_truncated_10', 'moa_compound_uM',
235+
'annotated_target_description_truncated_10', 'target_description_truncated_10',
236+
'chemical_description', 'manual_annotation', 'compound_type', # manual_annotation FIRST for CP!
237+
'is_landmark',
238+
'cosine_distance_from_dmso', 'mad_cosine',
239+
# 1st Landmark
240+
'closest_landmark_moa_first', 'closest_landmark_PP_ID', 'closest_landmark_PP_ID_uM',
241+
'closest_landmark_distance', 'closest_landmark_annotated_target_description_truncated_10',
242+
'closest_landmark_manual_annotation', 'closest_landmark_SMILES',
243+
# 2nd Landmark
244+
'second_closest_landmark_moa_first', 'second_closest_landmark_PP_ID_uM',
245+
'second_closest_landmark_distance',
246+
'second_closest_landmark_annotated_target_description_truncated_10',
247+
'second_closest_landmark_manual_annotation',
248+
# 3rd Landmark
249+
'third_closest_landmark_moa_first', 'third_closest_landmark_PP_ID_uM',
250+
'third_closest_landmark_distance',
251+
'third_closest_landmark_annotated_target_description_truncated_10',
252+
'third_closest_landmark_manual_annotation',
254253
]
255254

256255

0 commit comments

Comments
 (0)