
org.monarchinitiative.phenol.analysis.ItemSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phenol-analysis Show documentation
Show all versions of phenol-analysis Show documentation
phenol-analysis implements some algorithms for working with ontology data
The newest version!
package org.monarchinitiative.phenol.analysis;
import org.monarchinitiative.phenol.ontology.data.TermId;
import java.util.Map;
import java.util.Set;
/**
* Interface for item sets for overrepresentation analysis.
* The generic type T can be a TermId if the item are represented
* as {@link TermId}, as may be the case for Gene Ontology.
* @param The type of the annotated items.
* @author Peter N Robinson
*/
public interface ItemSet {
/** Key -- TermId for a domain item. Value -- Object with Ontologuy annotations of the item.*/
Map getAnnotationMap();
/** Set of annotated items. */
Set getGeneSet();
/**
* @param itemId Id of a domain item.
* @return number of Ontology terms that annotate the given item.
*/
int getDirectAnnotationCount(T itemId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy