Interface CoexpressionDao

    • Method Detail

      • findCoexpressionRelationships

        List<CoexpressionValueObject> findCoexpressionRelationships​(Gene gene,
                                                                    Collection<Long> bas,
                                                                    int maxResults,
                                                                    boolean quick)
        Find coexpression links for a gene that are common to all the given datasets. That is the stringency is bas.size().
        Parameters:
        bas - bio assays
        gene - gene
        maxResults - max results
        quick - quick
        Returns:
        coexpression VO
      • findCoexpressionRelationships

        Map<Long,​List<CoexpressionValueObject>> findCoexpressionRelationships​(Taxon taxon,
                                                                                    Collection<Long> genes,
                                                                                    Collection<Long> bas,
                                                                                    int maxResults,
                                                                                    boolean quick)
        Find coexpression links for the genes that are common to all the given datasets, so stringency = bas.size().
        Parameters:
        quick - quick
        maxResults - max results
        bas - bio assays
        taxon - taxon
        genes - genes
        Returns:
        map of ids to coexp. VOs
      • findCoexpressionRelationships

        Map<Long,​List<CoexpressionValueObject>> findCoexpressionRelationships​(Taxon t,
                                                                                    Collection<Long> genes,
                                                                                    Collection<Long> bas,
                                                                                    int stringency,
                                                                                    int maxResults,
                                                                                    boolean quick)
        Parameters:
        bas - limit on which data sets to query, or null (or empty) for no limit.
        stringency - minimum number of the datasets the link must be supported by
        maxResults - maximum results per gene.
        genes - genes
        quick - quick
        t - taxon
        Returns:
        map of ids to coexp. VOs
      • findInterCoexpressionRelationships

        Map<Long,​List<CoexpressionValueObject>> findInterCoexpressionRelationships​(Taxon taxon,
                                                                                         Collection<Long> genes,
                                                                                         Collection<Long> bas,
                                                                                         int stringency,
                                                                                         boolean quick)
        Return coexpression relationships among the given genes, limited to the given data sets.
        Parameters:
        quick - quick
        genes - genes
        taxon - taxon
        bas - bio assays
        stringency - stringency
        Returns:
        map of ids to coexp. VOs
      • updateNodeDegree

        GeneCoexpressionNodeDegreeValueObject updateNodeDegree​(Gene gene,
                                                               GeneCoexpressionNodeDegree nd)
        This is a maintenance method. This requires doing a coexpression query for the gene, and updating (or, if need be, creating) the associated GeneCoexpressionNodeDegree object.
        Parameters:
        gene - gene
        nd - node degree
        Returns:
        updated value object
      • queryAndCache

        int queryAndCache​(Gene gene)
        Parameters:
        gene - gene
        Returns:
        number of links that were cached