示例#1
0
    def get(self, id):
        """
        Returns phenotypes associated with disease
        """

        return search_associations('disease', 'phenotype', None, id,
                                   **core_parser.parse_args())
示例#2
0
    def get(self, subject_category='gene', object_category='gene'):
        """
        Returns list of associations
        """
        args = parser.parse_args()

        return search_associations(subject_category, object_category, **args)
示例#3
0
 def get(self, id):
     """
     Returns homologs for a gene
     """
     rel = 'RO:0002434'  # TODO
     return search_associations('gene', 'gene', rel, id,
                                **core_parser.parse_args())
示例#4
0
    def get(self, id):
        """
        TODO Returns expression events for a gene
        """

        return search_associations('gene', 'anatomy', None, id,
                                   **core_parser.parse_args())
示例#5
0
    def get(self, id):
        """
        Returns genes associated with a variant
        """

        # TODO: invert
        return search_associations('variant', 'gene', None, id,
                                   **core_parser.parse_args())
示例#6
0
    def get(self, id):
        """
        Returns phenotypes associated with a genotype
        """

        # TODO: invert
        return search_associations('genotype', 'phenotypes', None, id,
                                   **core_parser.parse_args())
示例#7
0
    def get(self, id):
        """
        TODO Returns models associated with a disease
        """

        # TODO: invert
        return search_associations('model', 'disease', None, id,
                                   **core_parser.parse_args())
示例#8
0
    def get(self, id):
        """
        Returns phenotypes associated with gene
        """
        args = core_parser.parse_args()
        print(args)

        return search_associations('gene', 'phenotype', None, id,
                                   **core_parser.parse_args())
示例#9
0
    def get(self, id):
        """
        Returns genes associated with a disease
        """
        args = core_parser.parse_args()
        print(args)

        return search_associations('disease', 'gene', None, id,
                                   **core_parser.parse_args())
示例#10
0
    def get(self, id):
        """
        TODO Returns expression events for a gene
        """

        # TODO: we don't store this directly
        # could be retrieved by getting all associations and then extracting pubs
        return search_associations('gene', 'publication', None, id,
                                   **core_parser.parse_args())
示例#11
0
 def get(self, id):
     """
     Returns interactions for a gene
     """
     return search_associations('gene', 'gene', 'RO:0002434', id,
                                **core_parser.parse_args())