Skip to content

Commit

Permalink
fix pharos class schema bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sagely1 committed Dec 18, 2024
1 parent f0e2705 commit 4a9d8d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export class GeneNominatedTargetsComponent implements OnInit {
: undefined;

// Populate Druggability display fields
de.pharos_class_display_value = de.druggability.pharos_class;
if (de.druggability)
de.pharos_class_display_value = de.druggability.pharos_class;
});

this.genes = genes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ export class GeneSimilarComponent implements OnInit {
de.nominated_target_display_value = false;

// Populate Druggability display fields
de.pharos_class_display_value = de.druggability.pharos_class;
if (de.druggability)
de.pharos_class_display_value = de.druggability.pharos_class;
});

this.genes = genes;
Expand Down
2 changes: 1 addition & 1 deletion src/app/models/genes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface Druggability {
sm_druggability_bucket: number;
safety_bucket: number;
abability_bucket: number;
pharos_class: string[];
pharos_class?: string[];
// classification should really be named sm_druggability_bucket_definition
classification: string;
safety_bucket_definition: string;
Expand Down

0 comments on commit 4a9d8d4

Please sign in to comment.