Compare DNA profiles
dbCompare(
x,
profiles = NULL,
hit = 7,
trace = TRUE,
vector = FALSE,
collapse = FALSE,
wildcard = FALSE,
wildcard.effect = FALSE,
wildcard.impose = FALSE,
Rallele = FALSE,
threads = 2
)
Database with DNA profiles. The database format is expected to be a
data frame with each column containing an allelic number such that for each
DNA marker there are two columns in the data frame. See
data(dbExample)
for an example of the format.
One or more profiles to be compared with all profiles in the
database. Input is a vector, matrix or data frame of same length/width as a
row in the database x
. If profiles is non-null only one CPU will be
used. In case threads>1 a warning will be given but computations performed
using single core.
The number of matching loci for further investigation
Shows a progress bar
Logical. Whether the result should be returned as vector or a matrix. Note if 'collapse' is TRUE vector is ignored.
Logical (default FALSE). If TRUE the (m,p)-matrix will be collapased into a (2*m+p)-vector containing the total number of matching alleles.
Use the wildcard comparing.
Compare result of wildcard and no wildcard.
Force homozygouse profiles (aa) to have wildcard (aF).
Implementation of 'Rare allele'designation matching.
The number of threads to use for performing comparisons in parallel for increased computation time. Use 0 for using the same number as the computer has CPU cores. NOTE: Only available on Linux and MacOS operating systems.
Returns a matrix with the number of pairs mathcing/partially-matching at (i,j)-loci.
Computes the distance between DNA profiles in terms of matching and partially-matching STR loci.
# NOT RUN {
# }
# NOT RUN {
data(dbExample)
dbCompare(dbExample,hit=5,trace=TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab