def biosample_synonyms(self, registry, biosample_term_id): biosample_term_id = ensurelist(biosample_term_id) syns = set() for term_id in biosample_term_id: if term_id in registry['ontology']: syns.update(registry['ontology'][term_id]['synonyms']) return list(syns)
def developmental_slims(self, registry, biosample_term_id): biosample_term_id = ensurelist(biosample_term_id) slims = set() for term_id in biosample_term_id: if term_id in registry['ontology']: slims.update(registry['ontology'][term_id]['developmental']) return list(slims)
def system_slims(self, registry, biosample_term_id): biosample_term_id = ensurelist(biosample_term_id) slims = set() for term_id in biosample_term_id: if term_id in registry['ontology']: slims.update(registry['ontology'][term_id]['systems']) return list(slims)
def assay_synonyms(self, registry, assay_term_id): assay_term_id = ensurelist(assay_term_id) syns = set() for term_id in assay_term_id: if term_id in registry['ontology']: syns.update(registry['ontology'][term_id]['synonyms'] + [ registry['ontology'][term_id]['name'], ]) return list(syns)