def test_select_distinct():
    """
    Find distinct genes
    """
    results = select_distinct_subjects(subject_category='gene',
                                       object_category='phenotype',
                                       subject_taxon='NCBITaxon:9606')
    print("DISTINCT SUBJECTS={}".format(results))
    assert len(results) > 0
Beispiel #2
0
    def get(self, id, taxid):
        """
        Returns gene ids for all genes for a particular phenotype in a taxon

        For example, + NCBITaxon:10090 (mouse)

        """
        results = select_distinct_subjects(subject_category='gene',
                                           object_category='phenotype',
                                           subject_taxon=taxid)
        return results
Beispiel #3
0
    def get(self, id, taxid):
        """
        Returns gene ids for all genes for a particular phenotype in a taxon

        For example, MP:0001569 + NCBITaxon:10090 (mouse)

        """
        return select_distinct_subjects(subject_category='gene',
                                        object_category='phenotype',
                                        subject_taxon=taxid,
                                        user_agent=USER_AGENT)