GeneDropSim.allsubsets.fn: Estimation of the probability of sharing of a rare variant by...

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

View source: R/functions.R

Description

Estimates the probabilities of sharing a rare variant for all subsets of a specified set of pedigree members given that the rare variant occured in any subject in the set by performing a Monte Carlo simulation of the transmission of the genotypes of the variant from the founders down the pedigree.

Usage

1
2
GeneDropSim.allsubsets.fn(trio.list, id, dt.vec, fd.indices, carriers=dt.vec, n = 1e3,
 k = 10, nf = 1)

Arguments

trio.list

a list of trio objects encoding the pedigree structure.

id

a vector of identifiers of the pedigree members.

dt.vec

a vector of identifiers of the subset of pedigree members for which to estimate the sharing probability. Must be a subset of the id vector.

fd.indices

a vector of the indices of the founders of the pedigree.

carriers

optional character vector of subjects carrying the rare variant among all final descendants. If null, all final descendants are assumed to carry the rare variant.

n

minimal number of gene dropping replicates where the rare variant occurs in at least one member of dt.vec.

k

this number times n gives the maximal number of gene dropping replicates.

nf

number of founders introducing the rare variant into the pedigree.

Details

The transmission of the RV down the pedigree from the nf founders introducing it is simulated according to Mendel's laws. The events that the variant was observed in any of the subjects from dt.vec and in all subsets of subjects included in carriers are then recorded. The simulation continues until the number of replicates where the RV was observed in any of the subjects from dt.vec reaches n or the number of replicates reaches k n. The RV sharing probabilities are then estimated as the number of replicates where the RV was observed in each subset over n (or the number of replicates where the RV was observed in any of the subjects when k n replicates are reached).

Value

Vector of estimates of the probabilities of sharing of a rare variant for all subsets of subjects of a specified set of pedigree members given the rare variant occured in any of them. The names of the vector elements are the concatenation of the sorted names of the subjects in the corresponding subset, separated by semi-columns.

Author(s)

Samuel G. Younkin <syounkin@stat.wisc.edu> and Alexandre Bureau <alexandre.bureau@msp.ulaval.ca>

References

Bureau, A., Younkin, S., Parker, M.M., Bailey-Wilson, J.E., Marazita, M.L., Murray, J.C., Mangold, E., Albacha-Hejazi, H., Beaty, T.H. and Ruczinski, I. (2014) Inferring rare disease risk variants based on exact probabilities of sharing by multiple affected relatives. Bioinformatics, 30(15): 2189-96, doi:10.1093/bioinformatics/btu198.

See Also

ped2trio, GeneDropSim.fn

Examples

1
2
3
4
5
6
data(ped.list)
plot(ped.list[[54]])
trio.obj = ped2trio(ped.list[[54]])
         
GeneDropSim.allsubsets.fn( trio.list = trio.obj$object, id=ped.list[[54]]$id, dt.vec = c("40","47"),
 fd.indices = trio.obj$fd.indices, n = 5e3)

RVsharing documentation built on May 29, 2017, 6:14 p.m.