A CRAN Task View for Forensic Science

I have started a CRAN task view for Forensic Science. The CTV is available on my Github page. I welcome any feedback, additions, and pull requests.

CRAN Task View: Forensic Science with R

Maintainer: Sam Tyner
Contact: sctyner at iastate.edu
Version: 2018-02-14
URL: https://CRAN.R-project.org/view=ForSci

This CRAN task view contains a list of packages, grouped by discipline, that can be used to perform forensci science tasks in R.

Unless otherwise mentioned, all packages presented with hyperlinks are available from CRAN, the Comprehensive R Archive Network.

Several of the areas discussed in this Task View are undergoing rapid change. Please send suggestions for additions and extensions for this task view to the task view maintainer.

Contributions are always welcome, and encouraged. The source file for this particular task view file are also in a GitHub repository (see below) so that pull requests are also possible.

DNA Evidence

  • forensic: Authored by Miriam Marusiakova. Date last modified on CRAN: 2012-10-29 08:58. Contains 5 functions for computing likelihood ratios and random match probabilities under various hypotheses. Depends on the packages genetics and combinat.
  • paramlink: Authored by Magnus Dehli Vigeland. Date last modified on CRAN: 2018-01-05. Contains methods for parametric linkage and other pedigree analyses. Forensic applications include exclusion probabilities, genotype distributions and conditional simulations. Imports functions from the packages, assertthat, graphics, kinship2, maxLik, stats, and utils packages.
  • DNAtools: Authored by Torben Tvedebrink and James Curran. Date last modified on CRAN: 2017-02-10. Computationally efficient tools for perfroming all pairwise comparisons for various allele and allele counts in a DNA database. Depends on Rsolnp, multicool.
  • forensim: Authored by Hinda Haned. Date last modified on CRAN: 2013-09-14. Provides several GUIs for the interpretation, simulation, and visualization of DNA mixture data. Depends on the methods, tcltk, tcltk2, and tkrplot packages.
  • mixsep: Authored by Date Torben Tvedebrink. Date last modified on CRAN: 2013-04-23. Implements analyses of 2- and 3-person DNA mixture separation in a GUI. Depends on the MASS, tcltk, tcltk2, and RODBC packages.
  • rforensicbatwing: Authored by Mikkel Meyer Andersen and Ian J. Wilson. Date last modified on CRAN: 2014-06-27. An R implementation of the C program BATWING for calculating forensic trace-suspect match probabilities. The primary functions batwing and coalmatchprob estimate the trace-suspect match probability for a lineage haplotype of STR markers using coalescent theory.
  • strvalidator: Authored by Oskar Hansson. Date last modified on CRAN: 2017-08-11. From the author, “An open source platform for validation and process control. Tools to analyze data from internal validation of forensic short tandem repeat (STR) kits are provided.” Requires installation of RGtk2 among other packages, and this can be difficult.
  • pcrsim: Authored by Oskar Hansson. Date last modified on CRAN: 2017-03-17. Provides GUI for simulating the forensic DNA process: generate random or fixed DNA profiles, create forensic samples including mixtures of diploid and haploid cells, simulate DNA extraction, normalization, degradation, amplification including stutters and inter-locus balance, and capillary electrophoresis. Depends on strvalidator.

Glass Evidence

  • tfer: Authored by James Curran and TingYu Huang. Date last modified on CRAN: 2010-11-07. From the authors, “functions for simulating the number of recovered glass fragments given the conditions set by the user on factors affecting the transfer, persistence and recovery of glass fragments. A large simulation size will provide precise estimates of transfer probabilities to be used in the Bayesian interpretation of forensic glass evidence.” Depends on methods package.

Firearm/Toolmark Evidence

Latent Print Evidence

  • shoeprintr is a package under development for comparing two shoeprint images. Authored by Soyoung Park and Alicia Carriquiry.
  • solefinder is a package under development containing a bundle of tools to analyze and compare shoeprints. Authored by Guillermo Basulto-Elias and MartinSilerio-Vazquez.


  • handwriter is a package under development for foresic handwriting analysis. Authored by Nick Berry.


  • stegasaur is a package under development for stenanography (embedding hidden messages in images) in R. Authored by Rich FitzJohn and David Miller.

Datasets and data tools

  • Data from the the book Introduction to Data Analysis with R for Forensic Scientists by James Michael Curran is provided in the dafs package by James Curran and Danny Chang.
  • The data object fgl in the MASS package contains 214 observations of 10 variables on glass fragments collected by B. German.
  • x3ptools is a package under development for working with x3p image files in R. Authored by Heike Hofmann, Ganesh Krishnan, and Eric Hare. For more information about x3p files, see http://www.openfmc.org/.

CRAN packages:

Sam Tyner
Sam Tyner
Data Scientist

I am an applied statistician and data scientist, with a wide range of skills and experiences. I’m passionate about using data to make a difference.