Skip to content

Instantly share code, notes, and snippets.

@wwood
Created September 9, 2009 06:52
Show Gist options
  • Save wwood/183528 to your computer and use it in GitHub Desktop.
Save wwood/183528 to your computer and use it in GitHub Desktop.
EuPathDB Ubiquity Scripts
CmdUtils.CreateCommand({
names: ["plasmodb"],
arguments: [{label: "plasmodb_id", nountype: noun_arb_text, role:'object'}],
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(args) {
var urlString = "http://plasmodb.org/gene/"+args.object.text;
Utils.openUrlInBrowser(urlString);
}
})
CmdUtils.CreateCommand({
names: ["plasmodb beta"],
arguments: [{label: "plasmodb beta id", nountype: noun_arb_text, role:'object'}],
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(args) {
var urlString = "http://beta.plasmodb.org/gene/"+args.object.text;
Utils.openUrlInBrowser(urlString);
}
})
CmdUtils.CreateCommand({
names: ["toxodb"],
arguments: [{label: "toxodb id", nountype: noun_arb_text, role:'object'}],
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(args) {
var urlString = "http://toxodb.org/gene/"+args.object.text;
Utils.openUrlInBrowser(urlString);
}
})
CmdUtils.CreateCommand({
names: ["toxodb beta"],
arguments: [{label: "toxodb beta id", nountype: noun_arb_text, role:'object'}],
homepage: "http://gist.github.com/129610",
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(args) {
var urlString = "http://beta.toxodb.org/gene/"+args.object.text;
Utils.openUrlInBrowser(urlString);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment