sampleSpecialization.Rd
Entropy-based sample specialization
sampleSpecialization(mat, norm = TRUE)
mat | A matrix (usually an expression matrix), with genes (features) in rows and samples in columns. |
---|---|
norm | Logical, whether the specialization should be normalized by |
A vector as long as the column number of the input matrix
Martinez and Reyes-Valdes (2008) Defining diversity, specialization, and gene specificity in transcriptomes through information theory. PNAS 105(28):9709--9714
#> [1] 0.01332588 0.07558228 0.11293612sampleSpecialization(myMat, norm=TRUE)#> [1] 0.01332588 0.07558228 0.11293612#> [1] 0.06834179 0.06481445 0.06571096 0.06345388 0.06278717 0.06436784 #> [7] 0.06527698 0.06225818 0.06402973 0.06570540 0.06448398 0.06679575 #> [13] 0.06326795 0.06204996 0.06538794 0.06051159 0.06480306 0.06481328 #> [19] 0.06565086 0.06624296sampleSpecialization(myRandomMat, norm=TRUE)#> [1] 0.06834179 0.06481445 0.06571096 0.06345388 0.06278717 0.06436784 #> [7] 0.06527698 0.06225818 0.06402973 0.06570540 0.06448398 0.06679575 #> [13] 0.06326795 0.06204996 0.06538794 0.06051159 0.06480306 0.06481328 #> [19] 0.06565086 0.06624296