imputation.maf: Extract statistics from imputation rules

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/imputation.R

Description

These functions extract key characteristics of regression-based imputation rules stored as an object of class "ImputationRules". imputation.maf extracts the minor allele frequencies of the imputed SNPs and imputation.r2 extracts the prediction R^2.

Usage

1
2
3
4

Arguments

rules

An object of class "ImputationRules"

Details

can.impute returns a logical vector identifying which rules allow a valid imputation. imputation.maf and imputation.r2 extract the minor allele frequencies of the imputed SNPs and the R^2 for prediction achieved when building each rule. imputation.nsnp returns the numbers of SNPs used in each imputation

Value

Either a logical vector, or a numeric vector containing the extracted values

Author(s)

David Clayton dc208@cam.ac.uk

See Also

ImputationRules-class, snp.imputation

Examples

1
2
3
# These functions are currently defined as
function (rules) sapply(rules, function(x) x$maf)
function (rules) sapply(rules, function(x) x$r2)

snpStats documentation built on Nov. 8, 2020, 10:59 p.m.