diss.dist
, calculating
the number of allelic differences between two samples.
bitwise.dist(x, percent = TRUE, mat = FALSE, missing_match = TRUE, differences_only = FALSE, threads = 0)
logical
. Should the distance be represented from 0 to
1? Default set to TRUE
. FALSE
will return the distance
represented as integers from 1 to n where n is the number of loci.logical
. Return a matrix object. Default set to
FALSE
, returning a dist object. TRUE
returns a matrix object.logical
. Determines whether two samples differing
by missing data in a location should be counted as matching at that
location. Default set to TRUE
, which forces missing data to match
with anything. FALSE
forces missing data to not match with any other
information.logical
. Determines whether the matrix should
count differences or distances. For instance, 0 to 2 would be a distance of
2 but a difference of 1.diss.dist
,
snpclone
,
genlight
,
win.ia
,
samp.ia
set.seed(999)
x <- glSim(n.ind = 10, n.snp.nonstruc = 5e2, n.snp.struc = 5e2, ploidy = 2)
x
system.time(xd <- bitwise.dist(x))
xd
Run the code above in your browser using DataLab