예제 #1
0
 def test_get_aggregate_attributes(self):
     all_author_pubs = authority_excerpt.first_author_all_pubs(
         [gold_aim3_pmids[0]])
     response = authority_excerpt.get_aggregate_attributes(
         all_author_pubs[0])
     gold_response = {
         'is_open_access': 0,
         'is_microarray_data_creation': 4,
         'is_meta_analysis': 0,
         'in_ae_or_geo': 0,
         'is_multicenter_study': 0,
         'in_swissprot': 0,
         'in_pdb': 0,
         'in_genbank': 0,
         'is_geo_reuse': 0
     }
     assert_equals(response, gold_response)
예제 #2
0
def filter_aggregate_attributes(pmid_bundle_list, key):
    response = []
    for pmid_bundle in pmid_bundle_list:
        attributes = authority.get_aggregate_attributes(pmid_bundle)
        response.append(attributes[key])
    return(response)
예제 #3
0
def filter_aggregate_attributes(pmid_bundle_list, key):
    response = []
    for pmid_bundle in pmid_bundle_list:
        attributes = authority.get_aggregate_attributes(pmid_bundle)
        response.append(attributes[key])
    return (response)
 def test_get_aggregate_attributes(self):
     all_author_pubs = authority_excerpt.first_author_all_pubs([gold_aim3_pmids[0]])
     response = authority_excerpt.get_aggregate_attributes(all_author_pubs[0])
     gold_response = {'is_open_access': 0, 'is_microarray_data_creation': 4, 'is_meta_analysis': 0, 'in_ae_or_geo': 0, 'is_multicenter_study': 0, 'in_swissprot': 0, 'in_pdb': 0, 'in_genbank': 0, 'is_geo_reuse': 0}
     assert_equals(response, gold_response)