Skip to content

Instantly share code, notes, and snippets.

@wwood
Created January 10, 2009 05:41
Show Gist options
  • Save wwood/45399 to your computer and use it in GitHub Desktop.
Save wwood/45399 to your computer and use it in GitHub Desktop.
Ubiquity Ensembl searching
CmdUtils.CreateCommand({
names: ["ensembl"],
arguments: [{label: "ensemble_gene_or_protein_or_transcript_id", nountype: noun_arb_text, role: 'object'}],
homepage: "www.ensembl.org",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft@pgrad.unimelb.edu.au"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
description: "Search Ensembl",
preview: "Search Ensembl.",
execute: function(args) {
var urlString = "http://www.ensembl.org/common/psychic?q="+args.object.text;
Utils.openUrlInBrowser(urlString);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment