Reads the Crime Scene Profile from a CSV file.
Path to the crime scene profile.
The input is a file in the CSV format (comma-separated values). It should have the following form:
Columns are separted by commas (not present in the table above). The first line, containing the name of the columns need be present. The first three columns are ignored for the purpose of the likeLTD package. They are present (and expected) merely for convenience. The fourth column indicates whether a line contains certain or uncertain alleles. "Uncertain" implies the latter, anything else implies the former. Beware of the capitalization. The next columns are for loci. "Locus" should be replaced with the actual locus name in the first line. Other lines should contain the comma-separated names of the alleles present in the CSP, within quotation marks. Entries can be empty. The lines labeled "Uncertain" are ignored by this function.
A matrix where columns are loci and rows are replicates. Each element is a vector of character, and each character is the name of an allele certainly present in the CSP for that loci and replicate. For simplicity, loci for which all entries are NA are removed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
## Not run: # datapath to example files datapath = file.path(system.file("extdata", package="likeLTD"),"hammer") # File paths and case name for allele report admin = pack.admin.input( cspFile = file.path(datapath, 'hammer-CSP.csv'), refFile = file.path(datapath, 'hammer-reference.csv'), caseName = "hammer", kit= "SGMplus" ) # get CSP read.csp.profile(admin$cspFile) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.