Skip to content

Commit

Permalink
Merge pull request #1342 from sagely1/AG-1600-pharos-class-bug
Browse files Browse the repository at this point in the history
AG-1600 fix pharos class schema bug
  • Loading branch information
JessterB authored Dec 18, 2024
2 parents f0e2705 + 4a9d8d4 commit 65b774b
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 65b774b

Please sign in to comment.