demo/allele_report.R

# Demo for running allele report.

# Load library!
library(likeLTD) 

# Get path to libray, cos that's where the data is.
likeLTD.path <- path.package('likeLTD')

# Case we are going to be looking at.
caseName = 'hammer'
datapath <- file.path(file.path(likeLTD.path, 'extdata'), caseName)
# Construct input: crime scene profile
mixedFile = file.path(datapath, 'hammer-CSP.csv')
# Construct input: reference profiles
refFile = file.path(datapath, 'hammer-reference.csv')
# Construct input: output path in the R temp directory for now
outputPath = tempdir()

# Construct list of all administrative input
admin = pack.admin.input( caseName=caseName,
                          cspFile=cspFile,
                          refFile=refFile,
                          outputPath=outputPath )
# Finally call allele.report
allele.report(admin)

Try the likeLTD package in your browser

Any scripts or data that you put into this service are public.

likeLTD documentation built on May 1, 2019, 7:58 p.m.