コード例 #1
0
ファイル: __init__.py プロジェクト: EndyLab/PythonCyc
def all_orgids():
    """ 
    Returns all organism unique ids (orgids) available 
    from the current running Pathway Tools. 
    """
    orgids = sendQueryToPTools('(all-orgids)')
    return orgids
コード例 #2
0
ファイル: __init__.py プロジェクト: hariesramdhani/PythonCyc
def all_orgids():
    """ 
    Returns all organism unique ids (orgids) available 
    from the current running Pathway Tools. 
    """
    orgids = sendQueryToPTools('(all-orgids)')
    return orgids
コード例 #3
0
ファイル: __init__.py プロジェクト: EndyLab/PythonCyc
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
ファイル: __init__.py プロジェクト: hariesramdhani/PythonCyc
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
ファイル: __init__.py プロジェクト: EndyLab/PythonCyc
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
ファイル: __init__.py プロジェクト: hariesramdhani/PythonCyc
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 + '")')