Skip to content

Instantly share code, notes, and snippets.

@ddtxra
Last active March 12, 2016 21:14
Show Gist options
  • Save ddtxra/1714e8673f0619fa9b8f to your computer and use it in GitHub Desktop.
Save ddtxra/1714e8673f0619fa9b8f to your computer and use it in GitHub Desktop.
Get expression data
<script src="https://cdn.rawgit.com/calipho-sib/nextprot-js/v0.0.54/dist/nextprot.bundle.js"></script>
<span id="api-result"></span>
<script type="text/javascript">
var applicationName = 'expression-viewer';
var clientInfo='GSOC';
var nx = new Nextprot.Client(applicationName, clientInfo);
var entry = nx.getEntryName();
nx.getAnnotationsByCategory(entry, "expression-profile").then(function (data){
$("#api-result").text("Got " + data.annot.length + " annotations for " + entry);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment