All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.monarchinitiative.phenol.stats.GoTerm2PValAndCounts Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package org.monarchinitiative.phenol.stats;

import org.monarchinitiative.phenol.ontology.data.TermId;

/**
 * This class is used to store the numbers we need to calculate a P Value for individual GO Terms
 * using the Term for Term approach and also to store the numbers of study and population genes
 * that were annotated to the term
 *
 * @author Peter Robinson
 */

public class GoTerm2PValAndCounts extends Item2PValue
{

  private int annotatedStudyGenes;
  private int annotatedPopulationGenes;

  public GoTerm2PValAndCounts(TermId goId, double raw_pval, int annotatedStudyGenes, int annotatedPopulationGenes){
    super(goId,raw_pval);
    this.annotatedPopulationGenes=annotatedPopulationGenes;
    this.annotatedStudyGenes=annotatedStudyGenes;
  }

  public int getAnnotatedStudyGenes() {
    return annotatedStudyGenes;
  }

  public int getAnnotatedPopulationGenes() {
    return annotatedPopulationGenes;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy