Learn R Programming

⚠️There's a newer version (1.7.4) of this package.Take me there.

disclapmix

An R package (https://www.r-project.org/) to perform inference in a mixture of discrete Laplace distributions using the EM algorithm. Intended for forensic Y chromosomal STR (Y-STR) haplotype analyses.

See documentation included in package (vignettes and manual) at https://mikldk.github.io/disclapmix/.

Installation

You first need R (https://www.r-project.org/). Then you can install disclapmix from CRAN using

install.packages("disclapmix")

You can also install the development version from GitHub by using the remotes package (https://CRAN.R-project.org/package=remotes):

# install.packages("remotes")
remotes::install_github("mikldk/disclapmix")

Getting started

Refer to the included vignettes. You can get an overview of the included vignettes by the following R command:

vignette(package = "disclapmix")

To read a vignette, type:

vignette("introduction", package = "disclapmix")

Running tests

Note that to also install the tests, you need to install the package as follows:

# install.packages("remotes")
remotes::install_github("mikldk/disclapmix", INSTALL_opts="--install-tests")

You can now run the tests:

library(disclapmix)
library(testthat)
test_package('disclapmix')

Contribute, issues, and support

Please use the issue tracker at https://github.com/mikldk/disclapmix/issues if you want to notify us of an issue or need support. If you want to contribute, please either create an issue or make a pull request.

References

Andersen MM, PS Eriksen, N Morling (2013). The discrete Laplace exponential family and estimation of Y-STR haplotype frequencies. Journal of Theoretical Biology 329. https://doi.org/10.1016/j.jtbi.2013.03.009

Andersen MM, PS Eriksen, N Morling (2013). A gentle introduction to the discrete Laplace method for estimating Y-STR haplotype frequencies. arXiv:1304.2129. https://arxiv.org/abs/1304.2129

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

License

License: GPL-2.

Badges

The Journal of Open Source Software:

Zenodo:

Travis CI:

Copy Link

Version

Install

install.packages('disclapmix')

Monthly Downloads

274

Version

1.7.3

License

GPL-2 | file LICENSE

Maintainer

Mikkel Andersen

Last Published

March 12th, 2019

Functions in disclapmix (1.7.3)

plot.ranked_contrib_pairs

Plot ranked contributor pairs
disclapmix

disclapmix
generate_mixture

Generate a mixture
rank_contributor_pairs

Separate a 2 person mixture
simulate.disclapmixfit

Simulate from a disclapmixfit
get_rank

Get rank of pair
print.contrib_pairs

Print contributor pairs
haplotype_diversity

Calculate haplotype diversity from a disclapmixfit
contributor_pairs

Contributor pairs from a 2 person mixture
predict.disclapmixfit

Predict from a disclapmixfit
danes

Y-STR haplotypes
clusterdist

Calculate distance between clusters
clusterprob

Cluster origin probabilities for haplotypes
print.ranked_contrib_pairs

Print ranked contributor pairs
summary.disclapmixfit

Summary of a disclapmixfit
print.disclapmixfit

Print a disclapmixfit
plot.disclapmixfit

Plot a disclapmixfit