GeneDropSim.allsubsets.fn(trio.list, id, dt.vec, fd.indices, carriers=dt.vec, n = 1e3,
k = 10, nf = 1)
id
vector.dt.vec
.n
gives the maximal number of gene dropping replicates.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).ped2trio, GeneDropSim.fn
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)
Run the code above in your browser using DataLab