Class HomologeneServiceImpl

    • Constructor Detail

      • HomologeneServiceImpl

        public HomologeneServiceImpl​(GeneService geneService,
                                     TaxonService taxonService,
                                     org.springframework.core.io.Resource homologeneFile)
    • Method Detail

      • getHomologue

        public Gene getHomologue​(Gene gene,
                                 Taxon taxon)
        Specified by:
        getHomologue in interface HomologeneService
        Parameters:
        gene - gene
        taxon - desired taxon to find homologue in
        Returns:
        Finds the homologue of the given gene for the taxon specified, or null if there is no homologue
      • getHomologues

        public Collection<Gene> getHomologues​(Gene gene)
        Specified by:
        getHomologues in interface HomologeneService
        Parameters:
        gene - gene
        Returns:
        Collection of genes found in Gemma that are homologous with the given gene. Empty if no homologues or gene lacks homologue information, or null if not ready.
      • getHomologues

        public Collection<Long> getHomologues​(Long ncbiId)
        Specified by:
        getHomologues in interface HomologeneService
        Parameters:
        ncbiId - gene ncbi id
        Returns:
        A collection of NCBI gene ids that are homologous with the given NCBI Gene Id
      • getHomologueValueObject

        public GeneValueObject getHomologueValueObject​(Long geneId,
                                                       String taxonCommonName)
        Specified by:
        getHomologueValueObject in interface HomologeneService
        Parameters:
        geneId - gene id
        taxonCommonName - desired taxon to find homologue in
        Returns:
        Finds the homologue of the given gene for the taxon specified, or null if there is no homologue
      • getNCBIGeneIdsInGroup

        public Collection<Long> getNCBIGeneIdsInGroup​(long homologeneGroupId)
        Given an NCBI Homologene Group ID returns a list of all the NCBI Gene Ids in the given group
        Specified by:
        getNCBIGeneIdsInGroup in interface HomologeneService
        Returns:
        Collection of NCBI Gene Ids, or null if not ready.