Skip to main content

Module hcs

Module hcs 

Source
Expand description

Historically conserved sequences (HCS; Tharanga et al. 2025; D12, D44, D86).

A position qualifies when its Index k-mer reaches the threshold incidence, compared exactly (count × 100 ≥ threshold × support in integers). Above 50% the Index variant is unique, so a qualifying position has exactly one conserved k-mer. Consecutive qualifying k-mers are joined into one region when they overlap or abut (as in Abd Raman et al. 2020) and agree on every overlapping column; a disagreement starts a new region marked split_from_previous.

Low support (D86). Like the paper and DiMA v5.0.9, any position may qualify. Each region lists the positions in its span with support ≤ T and is flagged when there are any — the practice of Abd Raman et al. 2020 (conserved-sequence tables with low-support positions asterisked) and Hu et al. 2013 — and reports the exact 95% Clopper–Pearson lower bound of its members’ conservation (Clopper & Pearson 1934): a k-mer shared by 3 of 3 sequences is “100% conserved” but only bounded below by 29.2%. With eligible_only, only positions with support > T qualify and NS/LS/ELS positions end regions (the analysis set of Hu et al. 2013; cf. Gblocks, Castresana 2000).

Structs§

HcsParams
HCS parameters.

Constants§

CONFIDENCE_LEVEL
Confidence level of the reported lower bounds.
ELIGIBLE_ONLY_REFERENCE
Also cited with eligible_only: low-support columns end blocks, as in Gblocks.
REFERENCES
Citation keys of the HCS method.

Functions§

compute
Computes the conserved regions of a results set.
lower_bound_95
Exact two-sided 95% Clopper–Pearson lower bound of count / support.