[pygr-notify] [pygr commit] r54 - wiki
codesite-noreply at google.com
codesite-noreply at google.com
Tue Jun 24 09:38:06 PDT 2008
Author: ramccreary
Date: Tue Jun 24 09:37:29 2008
New Revision: 54
Modified:
wiki/ServingDataUsingpygrData.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/ServingDataUsingpygrData.wiki
==============================================================================
--- wiki/ServingDataUsingpygrData.wiki (original)
+++ wiki/ServingDataUsingpygrData.wiki Tue Jun 24 09:37:29 2008
@@ -9,16 +9,13 @@
First, import pygr.Data, then reference the pygr.Data resource you
wish to serve. In this case, the reference is
pygr.Data.Bio.Seq.Genome.ECOLI.ecoli. A NLMSA is a data structure used
to store the genome/sequence maps. The alignment and sequence databases
stored in the NLMSA can currently be accessed by pygr.Data.
-{{{
-import pygr.Data
-nlmsa=pygr.Data.Bio.Seq.Genome.ECOLI.ecoli
-}}}
-
Next, the server is assigned a name; this name will be used a layer
name within pygr.Data, as well as a port number. The port number can be
set to any number that is currently available. Finally, the server can
be accessed easily by the URL from any location, as long as the URL is
set to the PYGRDATAPATH.
+In order to access the newly-created server from a remote location,
the server must be set as the PYGRDATAPATH. PYGRDATAPATH searches for
pygr.Data resources in three steps: 1) in the current directory; 2) in
the home directory; and 3) from the XMLRPC server. It is essential to
assign the server as to PYGRDATAPATH, or an error will result. The
correct address to give to PYGRDATAPATH would be the URL of your server
(http://somehost:1215), with somehost as the server address.
+
{{{
+import pygr.Data
+nlmsa=pygr.Data.Bio.Seq.Genome.ECOLI.ecoli
server=pygr.Data.getResource.newServer('rachel',withIndex=True,port=1215)
server.serve_forever()
}}}
-
-In order to access the newly-created server from a remote location,
the server must be set as the PYGRDATAPATH. PYGRDATAPATH searches for
pygr.Data resources in three steps: 1) in the current directory; 2) in
the home directory; and 3) from the XMLRPC server. It is essential to
assign the server as to PYGRDATAPATH, or an error will result. The
correct address to give to PYGRDATAPATH would be the URL of your server
(http://somehost:1215), with somehost as the server address.
\ No newline at end of file
More information about the pygr-notify
mailing list