Learn R Programming

rres

Realized Relatedness Estimation and Simulation

This package contains useful functions for studying realized genetic relatedness between individuals who can trace back to some recent common ancestors. Functions in this package fall into four main categories:

  1. Simulation of inheritance pattern and SNP marker data

-sim.recomb()
-sim.haplotype()
-populate.snp()

  1. Scoring identity by descent information from simulated inheritance patterns

-ibd.length()
-ibd.proportion()
-ibd.segment()
-ibd.marker()

  1. Estimation of realized relatedness from SNP marker data using the GRM estimators

-grm.pair()
-grm.matrix()
-ld.weights()

  1. Various utility functions

-check.pedinfo()
-get.pedindex()
-fgl2ibd()
-fgl2relatedness()
-recode.ibd()
-recode.snpdata()
-read.plink.text()
-read.plink.binary()
-write.ibdhaplo()

Copy Link

Version

Install

install.packages('rres')

Monthly Downloads

158

Version

1.1

License

GPL (>= 2)

Maintainer

Bowen Wang

Last Published

June 4th, 2018

Functions in rres (1.1)

ibd.marker

Score IBD sharing at a list of marker positions.
check.pedinfo

Check pedigree information.
get.pedindex

Get pedigree index.
grm.pair

GRM for a pair of individuals.
fgl2ibd

Score IBD state.
fgl2relatedness

Score pairwise relatedness.
grm.matrix

GRM for multiple individuals
ibd.proportion

Score IBD proportion.
recode.ibd

Recode IBD sharing.
read.plink.text

Read PLINK text file.
read.plink.binary

Read PLINK binary file.
ibd.length

Score IBD length.
ld.weights

LD weights
sim.recomb

Simulate inheritance on a given pedigree.
ibd.segment

Score IBD sharing by segment.
write.ibdhaplo

Write IBDHAPLO
populate.snp

Populate SNPs.
sim.haplotype

Simulate artificial haplotypes.
recode.snpdata

Recode SNP marker data.