Created
May 12, 2016 20:58
-
-
Save sestaton/b48b993f1d70cb28de2e9e39fd2fe98e to your computer and use it in GitHub Desktop.
create GO term links for jbrowse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fmtDetailValue_Ontology_term : function(goterm) { | |
if (typeof goterm != 'string') { | |
return goterm; | |
} | |
var dbid = goterm.split(':'); | |
var prefix = ''; | |
switch (dbid[0]) { | |
case 'GO': | |
prefix = 'http://amigo.geneontology.org/amigo/medial_search?q=GO:'; | |
break; | |
default: | |
return goterm; | |
}; | |
return '<a href=\"'+ prefix + dbid[1] + '\">' + goterm + '</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
minified for trackList.json: