readProfiles {relSim} | R Documentation |
Read a set of profiles from a file
Description
Reads a set of profiles from a file
Usage
readProfiles(
fileName,
freqs = NULL,
sep = "\t",
header = FALSE,
id = 1,
discardMissing = TRUE
)
Arguments
fileName |
a path to the profile file. |
freqs |
A list containing two lists labelled loci and freqs. The second
list is a list of vectors containing the allele frequencies of each allele
at each locus in the multiplex. If this is left |
sep |
a character that delimits the fields in the profile file. |
header |
a boolean which is |
id |
a column number indicating which column the profile id's are stored. If |
discardMissing |
if |
Details
The alleles are recorded integers rather than the STR repeat numbers. This speeds up computation immensely when calculating any of the LRs or IBS.
Value
a list containing a data.frame
of profiles where the alleles have been recoded
to the allele index number, rather than the allele itself, and a set of frequencies in the same
format as you would get from readFreqs
. If freqs
have been supplied, then this
will just be the same set of frequencies, if they have not, then this will be calculated
from the profiles. Given that the profiles generally do not have any locus name information
the loci will just be labelled Locus1, Locus2, .... If there are missing values then the raw missing profiles are returned
Author(s)
James M. Curran