Exemple #1
0
def test_protein_phosphorylation_details_structure(model, identifier='GAL4'):
    response = json.loads(model.protein_phosphorylation_details(identifier))
    assert response is not None
    for entry in response:
        check_evidence(entry)
        assert 'locus' in entry
        assert 'site_index' in entry
        assert 'site_residue' in entry
Exemple #2
0
def check_sequence_evidence(evidence):
    check_evidence(evidence)
    assert "residues" in evidence
    assert "locus" in evidence

    ##check_obj(evidence['residues'])
    check_obj(evidence["locus"])
    assert "format_name" in evidence["locus"]
Exemple #3
0
def check_regulation_evidence(evidence):
    check_evidence(evidence)
    assert 'locus1' in evidence
    assert 'locus2' in evidence
    #assert 'conditions' in evidence

    check_obj(evidence['locus1'])
    assert 'format_name' in evidence['locus1']
    check_obj(evidence['locus2'])
    assert 'format_name' in evidence['locus2']
Exemple #4
0
def check_protein_domain_evidence(evidence):
    check_evidence(evidence)
    assert 'domain' in evidence
    #assert 'protein' in evidence
    assert 'status' in evidence
    assert 'start' in evidence
    assert 'end' in evidence
    assert 'date_of_run' in evidence
    assert 'evalue' in evidence

    check_obj(evidence['domain'])
Exemple #5
0
def check_phenotype_evidence(evidence):
    check_evidence(evidence)
    assert 'phenotype' in evidence
    assert 'locus' in evidence
    #assert 'conditions' in evidence
    assert 'category' in evidence['experiment']
    assert 'mutant_type' in evidence

    check_obj(evidence['phenotype'])

    check_obj(evidence['locus'])
    assert 'format_name' in evidence['locus']
Exemple #6
0
def test_binding_site_details_structure(model, identifier='GAL4'):
    response = json.loads(model.binding_site_details(identifier))
    assert response is not None
    for entry in response:
        check_evidence(entry)
        assert 'locus' in entry
        assert 'expert_confidence' in entry
        assert 'total_score' in entry
        assert 'motif_id' in entry
        assert 'link' in entry

        check_obj(entry['locus'])
        assert 'format_name' in entry['locus']
Exemple #7
0
def check_ec_number_evidence(evidence):
    check_evidence(evidence)