Mat2geno: Format the genotype matrix to consectutive bins along the...

Description Usage Arguments Value Author(s) References

Description

This is a function takes the output from Extract_all and reforat the data.frame to a new data.frame with columns within the same genomic bins are avearged.

Usage

1
Mat2geno(out = out_3,id = id_all[index.keep],length.chr = length.chr)

Arguments

binsize

size of the consecutive bins

out_3

output matrix from EXtract_all

id_all

all or a subset of the inviduals to keep in the final matrix

length.chr

a vector contain the length of each chromsome in Mb

Value

return a matrix with each row as a individual and each column as one consecutive genomic bin

Author(s)

Yanjun Zan, Thibaut Payen

References

Yanjun Zan, Thibaut Payen, Mette Lillie Leif Andersson, Paul B. Siegel and Örjan Carlborg;Whole-genome QTL mapping in experimental pedigrees from outbred founders utilizing low coverage individual based sequencing 2018


yanjunzan/TD documentation built on May 18, 2019, 3:40 a.m.