Skip to content

Instantly share code, notes, and snippets.

@wwood
Created October 30, 2008 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wwood/20872 to your computer and use it in GitHub Desktop.
Save wwood/20872 to your computer and use it in GitHub Desktop.
[DEPRECATED: a version for Ubiquity 0.5 is now available at http://gist.github.com/183528] Ubiquity 0.1 commands for EuPathDB databases such as PlasmoDB and ToxoDB.
CmdUtils.CreateCommand({
name: "plasmodb",
takes: {"plasmodb_id": noun_arb_text},
homepage: "http://gist.github.com/20872",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft@pgrad.unimelb.edu.au"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
description: "Go to a PlasmoDB Gene page in a new window",
preview: "Go to a PlasmoDB Gene page in a new window.",
execute: function(plasmodb_id) {
var urlString = "http://plasmodb.org/gene/"+plasmodb_id.text;
Utils.openUrlInBrowser(urlString);
}
})
CmdUtils.CreateCommand({
name: "plasmodb_beta",
takes: {"plasmodb_id": noun_arb_text},
homepage: "http://gist.github.com/20872",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft@pgrad.unimelb.edu.au"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
description: "Go to a beta PlasmoDB Gene page in a new window",
preview: "Go to a beta PlasmoDB Gene page in a new window.",
execute: function(plasmodb_id) {
var urlString = "http://beta.plasmodb.org/gene/"+plasmodb_id.text;
Utils.openUrlInBrowser(urlString);
}
})
CmdUtils.CreateCommand({
name: "toxodb",
takes: {"toxodb_id": noun_arb_text},
homepage: "http://gist.github.com/20872",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft@pgrad.unimelb.edu.au"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
description: "Go to a ToxoDB Gene page in a new window",
preview: "Go to a ToxoDB Gene page in a new window.",
execute: function(toxodb_id) {
var urlString = "http://toxodb.org/gene/"+toxodb_id.text;
Utils.openUrlInBrowser(urlString);
}
})
CmdUtils.CreateCommand({
name: "toxodb_beta",
takes: {"toxodb_id": noun_arb_text},
homepage: "http://gist.github.com/20872",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft@pgrad.unimelb.edu.au"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
description: "Go to a beta ToxoDB Gene page in a new window",
preview: "Go to a beta ToxoDB Gene page in a new window.",
execute: function(toxodb_id) {
var urlString = "http://beta.toxodb.org/gene/"+toxodb_id.text;
Utils.openUrlInBrowser(urlString);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment