make our API docstrings more epydoc friendly
[htsworkflow.git] / htsworkflow / pipelines / bustard.py
index 54659b4ffd65aae40163b15dc630aae14f1710ff..a10c909afc5f8f84f53a91f903289454fa3e58a8 100644 (file)
@@ -1,4 +1,9 @@
+"""
+Extract configuration from Illumina Bustard Directory.
 
+This includes the version number, run date, bustard executable parameters, and 
+phasing estimates. 
+"""
 from datetime import date
 from glob import glob
 import logging
@@ -11,6 +16,9 @@ from htsworkflow.pipelines.runfolder import \
    VERSION_RE, \
    EUROPEAN_STRPTIME
 
+# make epydoc happy
+__docformat__ = "restructuredtext en"
+
 class Phasing(object):
     PHASING = 'Phasing'
     PREPHASING = 'Prephasing'
@@ -124,7 +132,13 @@ class Bustard(object):
 
 def bustard(pathname):
     """
-    Construct a Bustard object from pathname
+    Construct a Bustard object by analyzing an Illumina Bustard directory.
+
+    :Parameters:
+      - `pathname`: A bustard directory
+
+    :Return:
+      Fully initialized Bustard object.
     """
     b = Bustard()
     path, name = os.path.split(pathname)
@@ -143,6 +157,9 @@ def bustard(pathname):
     return b
 
 def fromxml(tree):
+    """
+    Reconstruct a htsworkflow.pipelines.Bustard object from an xml block
+    """
     b = Bustard()
     b.set_elements(tree)
     return b