Пример #1
0
def all_orgids():
    """ 
    Returns all organism unique ids (orgids) available 
    from the current running Pathway Tools. 
    """
    orgids = sendQueryToPTools('(all-orgids)')
    return orgids
Пример #2
0
def all_orgids():
    """ 
    Returns all organism unique ids (orgids) available 
    from the current running Pathway Tools. 
    """
    orgids = sendQueryToPTools('(all-orgids)')
    return orgids
Пример #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+'")')
Пример #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 + '")')
Пример #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+'")')
Пример #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 + '")')