utils.hamming.engine: Compiled Hamming comparison engine shared by...

View source: R/utils.hamming.blocks.r

utils.hamming.engineR Documentation

Compiled Hamming comparison engine shared by gl.filter.hamming and gl.report.hamming

Description

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.

Usage

.hamming_engine_cache

Format

An object of class environment of length 0.

Details

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").

Value

A list with elements dedup and pairwise.

Author(s)

Custodian: Luis Mijangos – Post to https://groups.google.com/d/forum/dartr


dartR.base documentation built on Nov. 18, 2026, 9:06 a.m.