Learn R Programming

chopsticks (version 1.36.0)

row.summary: Summarize rows of a snp matrix

Description

This function calculates call rates and heterozygosity for each row of a an object of class "snp.matrix"

Usage

row.summary(object)

Arguments

object
genotype data as a snp.matrix-class or X.snp.matrix-class object

Value

A data frame with rows corresponding to rows of the input object and with columns/elements:
Call.rate
Proportion of SNPs called
Heterozygosity
Proportion of called SNPs which are heterozygous

Examples

Run this code
data(testdata)
rs <- row.summary(Autosomes)
summary(rs)
rs <- row.summary(Xchromosome)
summary(rs)

Run the code above in your browser using DataLab