Ejemplo n.º 1
0
def swat(f):
    '''Print strings for local alignment score.'''
    a, b = ro.read_str(f).split()
    s, t = rd.protein_record(a).sequence, rd.protein_record(b).sequence
    print s
    print t
Ejemplo n.º 2
0
def protein_biological_processes(protein):
    """Return the list of biological processes a protein is involved in."""
    record = rd.protein_record(protein)
    # Return all Gene Ontology (GO) records that start with "P:"
    return [x[2][2:] for x in record.cross_references if x[0] == "GO" and x[2].startswith("P:")]