Commits

Aleš Erjavec  committed 911c336

Fixed docstrings (orngNetwork.Network -> Orange.network.Graph)

  • Participants
  • Parent commits 66a207e

Comments (0)

Files changed (1)

File obiGeneMania.py

 from xml.dom import minidom
 
 import orange
-import orngNetwork
 
 DEFAULT_SERVER = "http://193.2.72.57:8080/genemania"
 
     
     
     def retrieve(self, org, genes, m="automatic", r=10):
-        """ Retrieve orngNetwork.Network instance representing the network for
-        the query, (See 
-        `http://193.2.72.57:8080/genemania/pages/help.jsf#section/link`_ for
-        more details) 
+        """ Retrieve :class:`Orange.network.Graph` instance representing the network for
+        the query.
         
         :param org: NCBI taxonomy identifier (A. thaliana=3702, C. elegans=6239,
                     D. melanogaster=7227, H. sapiens=9606, M. musculus=10090
         :param r: the number of results generated by GeneMANIA (must be in 
                   range 1..100
         :type r: int
+        
+        .. note:: See `http://193.2.72.57:8080/genemania/pages/help.jsf#section/link`_ for
+            more details on the parameters. 
         """
         xml = self.retrieveXML(org, genes, m, r)
         dom = minidom.parseString(xml)
     
 def parse(DOM):
     """ Parse the graph DOM as returned from geneMANIA server and return
-    an orngNetwork.Network instance
+    an :class:`Orange.network.Graph` instance.
+    
     """
     nodes = DOM.getElementsByTagName("node")
     edges = DOM.getElementsByTagName("edge")