Interface CoexpressionDao
- All Known Implementing Classes:
CoexpressionDaoImpl
public interface CoexpressionDao
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncountLinks(Gene gene, ExpressionExperiment ee) countOldLinks(Collection<Gene> genes) voidcreateOrUpdate(ExpressionExperiment bioAssaySet, List<NonPersistentNonOrderedCoexpLink> p2plinks, LinkCreator c, Set<Gene> genesTested) voiddeleteLinks(Taxon taxon, ExpressionExperiment experiment) findCoexpressionRelationships(Gene gene, Collection<Long> bas, int maxResults, boolean quick) Find coexpression links for a gene that are common to all the given datasets.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().findCoexpressionRelationships(Taxon t, Collection<Long> genes, Collection<Long> bas, int stringency, int maxResults, boolean quick) 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.getCoexpression(Taxon taxon, ExpressionExperiment experiment, boolean quick) booleanhasLinks(Taxon taxon, ExpressionExperiment ee) initializeFromOldData(Gene gene, Map<Long, Gene> geneIdMap, Map<NonPersistentNonOrderedCoexpLink, SupportDetails> linksSoFar, Set<Long> skipGenes) intqueryAndCache(Gene gene) updateNodeDegree(Gene gene, GeneCoexpressionNodeDegree nd) This is a maintenance method.voidupdateRelativeNodeDegrees(Map<Long, List<Double>> relRanksPerGenePos, Map<Long, List<Double>> relRanksPerGeneNeg)
-
Method Details
-
hasLinks
-
countLinks
-
createOrUpdate
void createOrUpdate(ExpressionExperiment bioAssaySet, List<NonPersistentNonOrderedCoexpLink> p2plinks, LinkCreator c, Set<Gene> genesTested) - Parameters:
bioAssaySet- bio assay setp2plinks- in gene orderc- link creatorgenesTested- genes tested
-
deleteLinks
-
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:
gene- genebas- bio assaysmaxResults- max resultsquick- 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:
taxon- taxongenes- genesbas- bio assaysmaxResults- max resultsquick- quick- 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:
t- taxongenes- genesbas- 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 bymaxResults- maximum results per gene.quick- quick- 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:
taxon- taxongenes- genesbas- bio assaysstringency- stringencyquick- quick- Returns:
- map of ids to coexp. VOs
-
updateNodeDegree
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- genend- node degree- Returns:
- updated value object
-
getCoexpression
Collection<CoexpressionValueObject> getCoexpression(Taxon taxon, ExpressionExperiment experiment, boolean quick) - Parameters:
taxon- taxonexperiment- experimentquick- quick- Returns:
- links, but not including flipped versions
-
queryAndCache
- Parameters:
gene- gene- Returns:
- number of links that were cached
-
initializeFromOldData
Map<SupportDetails,Gene2GeneCoexpression> initializeFromOldData(Gene gene, Map<Long, Gene> geneIdMap, Map<NonPersistentNonOrderedCoexpLink, SupportDetails> linksSoFar, Set<Long> skipGenes) -
countOldLinks
-
updateRelativeNodeDegrees
-