Changelog
The full changelog is maintained in the repository root: CHANGELOG.md.
Latest: v1.3.0
Added
search_fuzzy(query, n=10, cutoff=0.0)on all three databases — fuzzy/partial search with ranked results.Added
AAIndex1.valid_categories()— returns a sorted list of all distinct category strings.Added
AAIndex1.batch_encode(sequences, record_code)— encodes a list of sequences in one call.Added
versionattribute on all three database instances — exposes the installed package version string directly on the object.Added
AAIndex1.encode(),get_correlated_indices(),compare_indices(),to_dict(),to_json(),to_dataframe()across all databases.Fixed: NA amino acid values now stored as
Noneinstead of0.0; arithmetic onNoneraisesTypeErroras expected.Fixed:
search()now searches all text fields — description, accession code, PMID, references, and notes.Fixed: Non-symmetric 20×20 matrices in
AAIndex2/AAIndex3now parsed correctly; each record exposesis_symmetric.Fixed:
correlation_coefficientsvalues are nowfloat(previously raw strings); existing JSON caches are normalised on load.Fixed: Gap placeholder
'-'is nowfloat0.0instead ofint0for type consistency.Fixed:
_parse_categories()no longer writes an intermediate file, fixing failures on read-only installs; path traversal inputs are now rejected.Fixed:
data_dirandaaindex_filenameproperty setters now reject values with path separators.Fixed: Malformed I-blocks and rows/cols headers now emit
UserWarninginstead of crashing withIndexError.Fixed: JSON cache write is now non-fatal on read-only data directories.
Fixed:
amino_acids()result cached in_AAIndexMatrixafter first call;Map.__delitem__usespopto avoidKeyError.Changed: Database parsing is now deferred (lazy loading);
parse_aaindex()/parse_categories()are now private with deprecated public shims;Map.__repr__returns a structuredAAIndexRecord(...)string.See CHANGELOG.md for the complete history.