smftools.informatics.reference_identity#
Canonical, name-independent reference identity via sequence hashing.
Different experiments sometimes name the same locus differently across FASTAs. A
sequence hash gives a stable reference_uid that is identical whenever the
underlying (unpadded, uppercased) reference sequence is identical, regardless of the
FASTA record name -- so the project layer can harmonize references automatically.
Near-identical (not byte-identical) references are handled separately by manual
aliases in the project reference_registry.yaml.
Functions
|
Return a canonical sequence-identity hash for a reference. |
- smftools.informatics.reference_identity.reference_uid(sequence, length=None)#
Return a canonical sequence-identity hash for a reference.
- Parameters:
- Return type:
- Returns:
A short hex digest (name-independent) identifying the sequence.