extract.r2.interval: Calculate the r^2 (squared correlation coefficient) between...

View source: R/snp_r2.R

extract.r2.intervalR Documentation

Calculate the r^2 (squared correlation coefficient) between the genotype at all loci on a chromosome and a specified SNP marker.

Description

This function primarily takes a formula, data frame, genome cache, and directory of founder strain .alleles files to calculate the pairwise r^2 between all individual markers and a specified locus, likely the peak SNP.

Usage

## S3 method for class 'r2.interval'
extract(scan.object, r2.scan.object, r2.level = 0.6)

Arguments

scan.object

An SNP scan object produced by imputed.snp.scan.h2lmm().

r2.scan.object

An r^2 object produced by pairwise.cor.snp.scan().

r2.level

DEFAULT: 0.6. The r^2 cutpoint. Returns the position interval includes loci with r^2 r2.level.

Examples

extract.r2.interval()

gkeele/miqtl documentation built on June 13, 2022, 4:20 p.m.