Commit 2d92846b authored by Mahdi Mahmoudy's avatar Mahdi Mahmoudy
Browse files

hotfix for UniProt isoform accessions

parent b1c4d5d5
...@@ -185,10 +185,10 @@ app.controller('AnnotationListCtrl', function($rootScope, $scope, $http, $routeP ...@@ -185,10 +185,10 @@ app.controller('AnnotationListCtrl', function($rootScope, $scope, $http, $routeP
// idMatches[0] = full matched string // idMatches[0] = full matched string
// idMatches[1] = database name (item before first semi-colon) // idMatches[1] = database name (item before first semi-colon)
// idMatches[2] = mapping key (item from second semi-colon to end or next semi-colon) // idMatches[2] = mapping key (item from second semi-colon to end or next semi-colon, exludes isoforms)
// idMatches[3] = simple id (item from second semi-colon to the end, including other semi-colons) // idMatches[3] = simple id (item from second semi-colon to the end, including other semi-colons)
var idMatches = annotation.geneProductId var idMatches = annotation.geneProductId
.match(/(\w+):?(\w+)?:?(.*)?/i); .match(/(\w+):?(\w+)?(?:-\d+)?:?(.*)?/i);
if (idMatches[2]) { if (idMatches[2]) {
annotation.geneProductSimpleId = (idMatches[3]) annotation.geneProductSimpleId = (idMatches[3])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment