Exemplo n.º 1
0
 /**
  * Determines is the supplied gene descriptor is statistically significant in any of the agi query
  * list columns.
  *
  * @param geneDescriptor
  * @return
  */
 public boolean isSignificant(GeneDescriptor geneDescriptor) {
   for (String setName : getSetNames()) {
     ProbabilityResult pr = getProbabilityResult(setName, geneDescriptor);
     if (pr != null && Math.log10(pr.getProbability()) <= -3) {
       return true;
     }
   }
   return false;
 }
Exemplo n.º 2
0
 /**
  * Adds a new map entry with the supplied query list name and probability result for a particular
  * gene descriptor. The table key is the combined query list name and gene descriptor from the
  * probability result.
  *
  * @param name the query list name.
  * @param pr the probability result.
  */
 public void add(String name, ProbabilityResult pr) {
   map.put(new SummaryKey(name, pr.getGeneDescriptor()), pr);
   nameSet.add(name);
   geneDescriptorSet.add(pr.getGeneDescriptor());
 }