예제 #1
0
def get_family_members(nextprot_id):
    url = nextprot_url + 'FA-' + nextprot_id
    res = urllib2.urlopen(url)
    html = res.read()
    match = re.match(r'(.*)http://www.uniprot.org/uniprot/\?query=family:([^"]*)"',\
             html, re.DOTALL|re.MULTILINE)
    family_name = match.groups()[1]
    gene_names = uniprot_client.get_family_members(family_name)
    return gene_names
예제 #2
0
def get_family_members(nextprot_id):
    url = nextprot_url + 'FA-' + nextprot_id
    res = urllib2.urlopen(url)
    html = res.read()
    match = re.match(r'(.*)http://www.uniprot.org/uniprot/\?query=family:([^"]*)"',\
             html, re.DOTALL|re.MULTILINE)
    family_name = match.groups()[1]
    gene_names = uniprot_client.get_family_members(family_name)
    return gene_names
예제 #3
0
def test_get_family_members():
    members = uniprot_client.get_family_members('RAF')
    assert 'ARAF' in members
    assert 'BRAF' in members
    assert 'RAF1' in members
    assert unicode_strs(members)
예제 #4
0
def test_get_family_members():
    members = uniprot_client.get_family_members('RAF')
    assert 'ARAF' in members
    assert 'BRAF' in members
    assert 'RAF1' in members
    assert unicode_strs(members)
예제 #5
0
def test_get_family_members():
    members = uniprot_client.get_family_members('RAF')
    assert('ARAF' in members)
    assert('BRAF' in members)
    assert('RAF1' in members)