R package for calculating clonal mutations and estimating transmission bottleneck.
Some of the functions in this package uses parallrl:mclapply()
to reduce the running time. Unfortunately, mclapply()
can only run on mac but not on windows. If you are using an operating system other than mac, you may need to adjust the functions using mclapply()
or simply change them into lapply()
and modify the arguments.
You can install this package using devtools
:
devtools::install_github("katiakoelle/nbclonal")
You can inspect all functions included in the package by:
library("nbclonal")
ls("package:nbclonal")
Please see the file NbClonal.Rmd and the generated pdf file NbClonal.pdffor a detailed description of each function, how they are developed, and ways to plot the results. Since some of the functions has been updated after generating this pdf, the functions may vary a little bit as the ones included in the package. Please use the final version of the functions listed in the package instead of copy-pasting functions from the pdf and rmd file.