View source: R/utils.hamming.blocks.r
| utils.hamming.engine | R Documentation |
WARNING: UTILITY SCRIPTS ARE FOR INTERNAL USE ONLY AND SHOULD NOT BE USED BY END USERS AS THEIR USE OUT OF CONTEXT COULD LEAD TO UNPREDICTABLE OUTCOMES.
.hamming_engine_cache
An object of class environment of length 0.
Compiles (on first call in a session) and returns two Rcpp functions:
dedup: the block-hashing near-duplicate detector used by
gl.filter.hamming. Given a list of equal-length raw vectors ordered
from worst to best call rate and a mismatch threshold k, it returns
a logical keep vector where FALSE marks a locus with a kept partner
within k mismatches, plus a flag indicating whether the candidate
cap was hit.
pairwise: exact Hamming mismatch counts for a given matrix of
index pairs, used by gl.report.hamming for the distance
distribution.
The compiled functions are cached in a package-local environment, so the
C++ toolchain runs at most once per session. Requires the package
Rcpp and a working compiler toolchain; callers must guard with
requireNamespace("Rcpp").
A list with elements dedup and pairwise.
Custodian: Luis Mijangos – Post to https://groups.google.com/d/forum/dartr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.