Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
Known drugs: update basic activity field; issue opentargets/issues#730
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaFumis committed Sep 23, 2019
1 parent 8c252bd commit 2f5c7b3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/src/components/known-drug-table/known-drug-table-directive.js
Expand Up @@ -7,7 +7,7 @@
angular.module('otDirectives')

/* Directive to display the known drug evidence table */
.directive('otKnownDrugTable', ['otColumnFilter', 'otApi', 'otConsts', 'otUtils', 'otConfig', '$location', 'otDictionary', function (otColumnFilter, otApi, otConsts, otUtils, otConfig, $location, otDictionary) {
.directive('otKnownDrugTable', ['otColumnFilter', 'otApi', 'otConsts', 'otUtils', 'otConfig', '$location', 'otDictionary', 'otClearUnderscoresFilter', function (otColumnFilter, otApi, otConsts, otUtils, otConfig, $location, otDictionary, otClearUnderscoresFilter) {
'use strict';
// var dbs = otConsts.dbs;
var searchObj = otUtils.search.translateKeys($location.search());
Expand Down Expand Up @@ -297,16 +297,16 @@ angular.module('otDirectives')
}).join(', '));

// 11: Activity
cell = item.target.activity;
switch (cell) {
case 'drug_positive_modulator' :
cell = 'agonist';
break;
case 'drug_negative_modulator' :
cell = 'antagonist';
break;
}
row.push(cell);
// cell = item.target.activity;
// switch (cell) {
// case 'drug_positive_modulator' :
// cell = 'agonist';
// break;
// case 'drug_negative_modulator' :
// cell = 'antagonist';
// break;
// }
row.push(otClearUnderscoresFilter(item.target.activity));

// 12: target
cell = item.target.gene_info.symbol;
Expand Down

0 comments on commit 2f5c7b3

Please sign in to comment.