Summarize rows or columns of a snp matrix
These function calculates summary statistics of each row or column of
call rates and heterozygosity for each row of a an
object of class "SnpMatrix"
or "XSnpMatrix"
row.summary(object) col.summary(object, rules = NULL, uncertain = TRUE)
object |
genotype data as a |
rules |
An object of class
|
uncertain |
If |
row.summary |
returns a data frame with rows corresponding to rows of the input object and with columns/elements:
Uncertain calls are ignored for calculating the heterozygosity. |
col.summary |
returns a data frame with rows corresponding to columns of the input object and with columns/elements:
For objects of class
|
The current version of row.summary
does not deal with the X chromosome
differently, so that males are counted as homozygous.
David Clayton dc208@cam.ac.uk
data(testdata) rs <- row.summary(Autosomes) summary(rs) cs <- col.summary(Autosomes) summary(cs) cs <- col.summary(Xchromosome) summary(cs)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.