diff --git a/src/app/annotation-sub-table/annotation-sub-table.component.html b/src/app/annotation-sub-table/annotation-sub-table.component.html
index f8c216e2..6b9f1164 100644
--- a/src/app/annotation-sub-table/annotation-sub-table.component.html
+++ b/src/app/annotation-sub-table/annotation-sub-table.component.html
@@ -53,6 +53,7 @@
Background |
Transcript ID |
Evidence |
+ Phenotype score |
Conditions |
Qualifiers |
Source |
@@ -182,6 +183,11 @@
+
+
+ {{annotation.annotation_phenotype_score}}
+
+ |
-
diff --git a/src/app/annotation-sub-table/annotation-sub-table.component.ts b/src/app/annotation-sub-table/annotation-sub-table.component.ts
index 989191e6..e80b8548 100644
--- a/src/app/annotation-sub-table/annotation-sub-table.component.ts
+++ b/src/app/annotation-sub-table/annotation-sub-table.component.ts
@@ -278,6 +278,18 @@ export class AnnotationSubTableComponent implements OnInit, OnChanges {
}
}
+ hasPhenotypeScores(): boolean {
+ for (const termAnnotation of this.annotationTable) {
+ for (const annotation of termAnnotation.annotations) {
+ if (annotation.annotation_phenotype_score) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
+
init() {
this.termNameColSpan = -1;
@@ -289,6 +301,18 @@ export class AnnotationSubTableComponent implements OnInit, OnChanges {
}
}
+ if (typeConfig.columns_to_show_by_page_type &&
+ typeConfig.columns_to_show_by_page_type[this.scope]) {
+ for (let columnName of typeConfig.columns_to_show_by_page_type[this.scope]) {
+ this.showColumn[columnName] = true;
+ }
+ }
+
+ if (this.showColumn['annotation_phenotype_score'] && !this.hasPhenotypeScores()) {
+ // hide the column if there aren't any
+ this.showColumn['annotation_phenotype_score'] = false;
+ }
+
if (this.hideColumns) {
for (let columnName of this.hideColumns) {
this.showColumn[columnName] = false;
diff --git a/src/app/config.ts b/src/app/config.ts
index ced2ecbe..a7dc2663 100644
--- a/src/app/config.ts
+++ b/src/app/config.ts
@@ -461,6 +461,7 @@ export interface AnnotationType {
inherits_from?: string;
split_by_parents?: Array;
columns_to_show?: Array;
+ columns_to_show_by_page_type?: { [column_name: string]: Array };
details_only?: boolean;
// if true, don't automatically show a gene page section for this type
no_gene_details_section?: boolean;
diff --git a/src/app/pombase-api.service.ts b/src/app/pombase-api.service.ts
index 5e71fb12..c1dcc93e 100644
--- a/src/app/pombase-api.service.ts
+++ b/src/app/pombase-api.service.ts
@@ -182,6 +182,7 @@ export interface Annotation {
transcripts: Array;
reference: ReferenceShort;
evidence?: string;
+ annotation_phenotype_score?: string;
conditions: Array;
condition_details: Array<[TermShort, String]>;
assigned_by: string|undefined;
|