herit_per_chr: Estimate the heritability of a phenotype on each chromosome.

Description Usage Arguments Value

View source: R/herit_per_chr.R

Description

Estimate the heritability of a phenotype on each chromosome.

Usage

1

Arguments

data

numeric matrix containing samples in rows and phenotypes and covariates in columns. The phenotype should be in column 1 and the covariates should be generated from model.matrix() in the remaining columns.

K

list containing kinship matrices for each chromosome. NOTE: these should be made using qtl2::calc_kinship(genoprobs, type = "chr")

Value

numeric matrix containing phenotypes in rows and kinship estimates per chromosome in columns.


churchill-lab/qtl2tricks documentation built on May 20, 2019, 1:13 p.m.