row.summary: Summarize rows of a snp matrix

Description Usage Arguments Value Note Author(s) Examples

View source: R/misc.R

Description

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

Usage

1
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

Note

The current version does not deal with the X chromosome differently, so that males are counted as homozygous

Author(s)

David Clayton david.clayton@cimr.cam.ac.uk

Examples

1
2
3
4
5

chopsticks documentation built on Nov. 8, 2020, 7:51 p.m.