Created
December 1, 2008 06:08
-
-
Save wwood/30649 to your computer and use it in GitHub Desktop.
Ubiquity command for OrthoMCL Gene and Group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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