Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/chromosomeStats.R
Calculate significant chromosomes with various statistical tests
1 2 | chromosomeStats(datalist, chromNum=1, samples=NULL, select="cli", test="fisher",
bonferroni = TRUE, enrichment = "greater")
|
datalist |
The CAFE datalist to be analyzed, i.e. the output of
|
chromNum |
The chromosome to be calculated. This can be |
samples |
A vector containing sample numbers to be analyzed |
select |
Signifies which type of sample selection prompt will be shown, if
|
test |
Signifies which statistical test to be used in the final calculation.
Must be either |
bonferroni |
If |
enrichment |
Test for over or underexpression. Can be set to |
A named vector containing p-values.
Technically speaking, the Fisher's exact test is better than the chi-square test; the Fisher's exact test gives an exact p-value, whereas the chi-square test only gives an approximation. However, the Fisher's exact test can get slow for large sample sizes, and the chi-square test becomes better with increasing sample size but does not slow down as much.
Sander Bollen
1 2 3 | data("CAFE_data")
sam <- c(9,11)
chromosomeStats(CAFE_data,chromNum=17,samples=sam,test="fisher")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.