Learn R Programming

snpMatrix (version 1.19.24)

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.rateProportion of SNPs called
  • HeterozygosityProportion 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