Ejemplo n.º 1
0
def test_chain_is_main_protein():
    feature = uniprot_client.get_feature_by_id('PRO_0000016665')
    assert feature.is_main, feature
    feature = uniprot_client.get_feature_by_id('PRO_0000030310')
    assert feature.is_main, feature
    feature = uniprot_client.get_feature_by_id('PRO_0000030311')
    assert not feature.is_main, feature
Ejemplo n.º 2
0
def test_feature_by_id():
    feature = uniprot_client.get_feature_by_id('PRO_0000292268')
    assert feature is not None
    assert feature.name == 'Processed angiotensin-converting enzyme 2'
    assert feature.type == 'CHAIN'
    assert feature.begin == 18, feature
    assert feature.end == 708
Ejemplo n.º 3
0
def test_sars_cov2_feature():
    feat = uniprot_client.get_feature_by_id('PRO_0000449635')
    assert feat.type == 'CHAIN'
    assert feat.begin == 1, feat
    assert feat.end == 180, feat
    assert feat.name == 'Host translation inhibitor nsp1', feat.name
Ejemplo n.º 4
0
def test_sars_cov2_feature():
    feat = uniprot_client.get_feature_by_id('PRO_0000449635')
    assert feat.type == 'CHAIN'
    assert feat.begin == 1, feat
    assert feat.end == 180, feat
    assert feat.name == 'Non-structural protein 1'