computeHpIC {PCAN} | R Documentation |
Compute Information Content (IC) for each HP based on genes by HP
computeHpIC(content, hp.descendants)
content |
a list providing the content associated to each HP |
hp.descendants |
a list providing for each HP all its descendant HP terms |
This function assumes that all the HP terms taken into account belong to the same family of terms(i.e they are all descendants of the same term).
a vector of IC named with HP terms
########################################### ## Compute information content of each HP according to associated genes data(geneByHp, hp_descendants, package="PCAN") geneByHp <- unstack(geneByHp, entrez~hp) ic <- computeHpIC(geneByHp, hp_descendants) hist( ic, breaks=100, col="grey", main="Distribution of Information Content", xlab="IC base on genes associated to HP" )