예제 #1
0
 public boolean underGenomicThreshold(int count, char strand) {
   boolean pass = true;
   for (BackgroundModel m : models) {
     if (m.isGenomeWide() && m.getStrand() == strand) if (!m.underThreshold(count)) pass = false;
   }
   return pass;
 }
예제 #2
0
 public boolean underAllThresholds(int count, char strand) {
   boolean pass = true;
   for (BackgroundModel m : models) {
     if (m.getStrand() == strand) if (!m.underThreshold(count)) pass = false;
   }
   return pass;
 }
예제 #3
0
 // Print
 public void printThresholds() {
   for (BackgroundModel m : models) {
     System.out.println(m.modelType + "\t" + m.getThreshold() + "\t" + m.getStrand());
   }
 }
예제 #4
0
 // Update
 public void updateModels(
     Region currReg, int currOffset, double[] thisExptHitCounts, double[] otherExptHitCounts) {
   for (BackgroundModel m : models)
     m.updateModel(currReg, currOffset, thisExptHitCounts, otherExptHitCounts);
 }
예제 #5
0
 public int getMaxThreshold(char str) {
   int max = 0;
   for (BackgroundModel m : models)
     if ((m.strand == str || str == '.') && m.getThreshold() > max) max = m.getThreshold();
   return max;
 }
예제 #6
0
 // Accessor
 public int getGenomicModelThreshold(String tType) {
   for (BackgroundModel m : models) if (m.isGenomeWide()) return m.getThreshold();
   return -1;
 }