Interface GeneDao

    • Method Detail

      • find

        Collection<Gene> find​(PhysicalLocation physicalLocation)
        Find all genes at a physical location. All overlapping genes are returned. The location can be a point or a region. If strand is non-null, only genes on the same strand are returned.
        Parameters:
        physicalLocation - physical location
        Returns:
        found genes
      • findByAlias

        Collection<Gene> findByAlias​(String search)
        Locate genes that match the given alias string
        Parameters:
        search - search string
        Returns:
        found genes
      • findByEnsemblId

        Gene findByEnsemblId​(String exactString)
      • findByNcbiId

        Gene findByNcbiId​(Integer accession)
      • findByOfficialSymbol

        Gene findByOfficialSymbol​(String symbol,
                                  Taxon taxon)
      • findByOfficialSymbolInexact

        Collection<Gene> findByOfficialSymbolInexact​(String officialSymbol)
      • findByOfficialSymbols

        Map<String,​Gene> findByOfficialSymbols​(Collection<String> query,
                                                     Long taxonId)
        Quickly load exact matches.
        Parameters:
        query - query
        taxonId - taxon id
        Returns:
        map of gene symbol (toLowerCase()) to the gene. The actual query that led to the gene is not retained.
      • findByNcbiIds

        Map<Integer,​Gene> findByNcbiIds​(Collection<Integer> ncbiIds)
        Quickly load exact matches.
        Parameters:
        ncbiIds - ncbi ids
        Returns:
        map of NCBI Id to the gene.
      • getCompositeSequenceCountById

        long getCompositeSequenceCountById​(long id)
        Parameters:
        id - id
        Returns:
        how many platform elements (e.g. probes) represent this gene, totalled up over all platforms.
      • getGenesByTaxon

        Collection<Gene> getGenesByTaxon​(Taxon taxon)
        Parameters:
        taxon - taxon
        Returns:
        a collections of genes that match the given taxon
      • getMicroRnaByTaxon

        Collection<Gene> getMicroRnaByTaxon​(Taxon taxon)
        Parameters:
        taxon - taxon
        Returns:
        a collection of genes that are actually MicroRNA for a given taxon
      • getPlatformCountById

        int getPlatformCountById​(Long id)
        Parameters:
        id - id
        Returns:
        how many platforms have a representation of this gene
      • loadKnownGenes

        Collection<Gene> loadKnownGenes​(Taxon taxon)
        Parameters:
        taxon - taxon
        Returns:
        a collection of genes for the specified taxon (not all genes, ie not probe aligned regions and predicted genes)
      • thawAliases

        Gene thawAliases​(Gene gene)
      • thawLite

        Gene thawLite​(Gene gene)
      • thawLiter

        Gene thawLiter​(Gene gene)
      • removeAll

        int removeAll()