Ejemplo n.º 1
0
def all_orgids():
    """ 
    Returns all organism unique ids (orgids) available 
    from the current running Pathway Tools. 
    """
    orgids = sendQueryToPTools('(all-orgids)')
    return orgids
Ejemplo n.º 2
0
def all_orgids():
    """ 
    Returns all organism unique ids (orgids) available 
    from the current running Pathway Tools. 
    """
    orgids = sendQueryToPTools('(all-orgids)')
    return orgids
Ejemplo n.º 3
0
def run_fba(fileName):
    """
    The function run_fba does not need to have an organism selected before
    being used because the FBA input file provided as input can specify
    the organism.

    For the documentation of this function, see method run_fba
    in file PGDB.py.
    """
    return sendQueryToPTools('(python-run-fba "'+fileName+'")')
Ejemplo n.º 4
0
def run_fba(fileName):
    """
    The function run_fba does not need to have an organism selected before
    being used because the FBA input file provided as input can specify
    the organism.

    For the documentation of this function, see method run_fba
    in file PGDB.py.
    """
    return sendQueryToPTools('(python-run-fba "' + fileName + '")')
Ejemplo n.º 5
0
def biovelo(query):
    """
    Execute a BioVelo query and return the result.
    
    Parameters
      query: a string, which is a BioVelo query.
    Returns 
       Whatever the BioVelo query computes.
    
    Example
       bv('[(p, reactions-of-pathway(p)): p<-ecoli^^pathways]')
    """
    return sendQueryToPTools('(biovelo "'+query+'")')
Ejemplo n.º 6
0
def biovelo(query):
    """
    Execute a BioVelo query and return the result.
    
    Parameters
      query: a string, which is a BioVelo query.
    Returns 
       Whatever the BioVelo query computes.
    
    Example
       bv('[(p, reactions-of-pathway(p)): p<-ecoli^^pathways]')
    """
    return sendQueryToPTools('(biovelo "' + query + '")')