Skip to content

Instantly share code, notes, and snippets.

@wwood
Created December 1, 2008 06:08
Show Gist options
  • Save wwood/30649 to your computer and use it in GitHub Desktop.
Save wwood/30649 to your computer and use it in GitHub Desktop.
Ubiquity command for OrthoMCL Gene and Group
CmdUtils.CreateCommand({
names: ["orthomcl"],
arguments: [{label: "gene_or_group_accession", nountype: noun_arb_text, role: 'object'}],
homepage: "http://gist.github.com/30649",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft@pgrad.unimelb.edu.au"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
help: "Go to an OrthoMCL gene or group page in a new window",
description: "Go to an OrthoMCL gene or group page in a new window",
preview: "Go to an OrthoMCL gene or group page in a new window",
execute: function execute(args) {
var urlString = "";
var text = new String(args.object.text);
urlString = "http://orthomcl.org/cgi-bin/OrthoMclWeb.cgi?rm=groupList&type=ackeyword&q="+
text +
"&in=Group+or+Seq+Accession%28s%29";
Utils.openUrlInBrowser(urlString);
}
})
CmdUtils.CreateCommand({
names: ["orthomcl beta"],
arguments: [{label: "gene_or_group_accession", nountype: noun_arb_text, role: 'object'}],
homepage: "http://gist.github.com/30649",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft@pgrad.unimelb.edu.au"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
help: "Go to an OrthoMCL gene or group page in a new window",
description: "Go to an OrthoMCL gene or group page in a new window",
preview: "Go to an OrthoMCL gene or group page in a new window",
execute: function execute(args) {
var urlString = "";
var text = new String(args.object.text);
urlString = "http://www.orthomcl.org/cgi-bin/OrthoMclWeb.cgi?rm=sequenceList&type=ackeyword&q="+
text+
"&in=Accession";
Utils.openUrlInBrowser(urlString);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment