Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
Section titled β[Unreleased]β[0.12.0] -- 2026-11-20
Section titled β[0.12.0] -- 2026-11-20βComponent versions: gtars-refget 0.12.0, gtars Python package 0.12.0, gtars-wasm 0.10.0, gtars-cli 0.11.0, gtars crate 0.11.0, gtars-uniwig 0.10.0, gtars-vrs 0.7.3, gtars-core 0.5.8, R gtars 0.11.0.
RefgetStore (gtars-refget)
Section titled βRefgetStore (gtars-refget)β- Store sequence and collection metadata in a compact columnar catalog; an open store uses about 6x less memory, and existing stores open without a rebuild
- Add a packed on-disk layout (alpha: the format may change) that writes sequences into size-capped pack files (
RefgetStore::on_disk_packed), andcompact()to reclaim space after removals;compact_with(CompactOptions { prune_unreferenced: true })also deletes pack files no index lists, such as those a crashed writer left - Add an opt-in block cache for packed-store reads (
set_pack_cache_mb, off by default); it helps clustered reads on a cold network file system - Stop
remove_collectionfrom deleting orphan sequences that another loaded collection still uses - Stream FASTA export one sequence at a time; exporting all of remote hg38 peaks at about 188 MB and no longer copies sequences into the local cache
- Add label templates for export headers (
{seq},{seq:NS},{col},{col:NS},{name}), whole-store export, output to stdout, and a molecule filter - Refuse imports that would put more than 500,000
.seqfiles in a standalone store (use the packed layout, or raisestandalone_file_limit;forcedoes not skip it); sequences already in the store don't count - Add
compare_level2_jsonto compare two level-2 collections without a store - Read multi-member gzip (bgzip, concatenated
.gz) in the streaming FASTA hasher - Refuse alias loads that map one alias to two digests; re-pointing an alias needs
force - Include the 0.11.2 encoding fixes in the crate for the first time
- Breaking:
export_fasta(selection, output, opts)replacesexport_fastaandexport_fasta_by_digests. The default header is now the digest (SQ.β¦), so pass{name}for chromosome names. Descriptions are no longer written. - Breaking: remove
SequenceCollectionRecord(usesequence_view,collection_membersandmember_by_name);get_sequenceand related getters return owned values; aliasadd_*andload_*_tsvtakeforce;ComparisonDigests.aisOption<String>
Python bindings (gtars PyPI package)
Section titled βPython bindings (gtars PyPI package)β- Use the compact catalog, so open stores use much less memory
- Release the GIL during slow calls (FASTA digesting, store import and export, remote loading, extraction, verify, VRS), so other Python threads keep running; threads that share one
RefgetStoretake turns instead of raising "Already borrowed" - Replace
export_fastaandexport_fasta_by_digestswith one streamingexport_fasta(output_path, collections=..., seq_digests=..., all=..., label=..., molecule=...)(breaking; the default label is the digest, so passlabel="{name}"for chromosome names) - Add
labeltoexport_fasta_from_regions; headers keep sequence names (>chr1:0-10) by default - Add
RefgetStore.on_disk(path, packed=True)for the packed layout (alpha),compact(prune_unreferenced=...),set_pack_cache(), and thelayoutproperty - Add
standalone_file_limittoadd_sequence_collection_from_fastaandadd_sequence_collections_from_fastas;forcedoes not skip the limit - Add
gtars.refget.compare_seqcols - Accept a dict or path-like object for
RegionSet.to_bigbedchromosome sizes; raiseValueErroron an unreadable file - Raise an error on alias clashes
WASM (@databio/gtars npm package)
Section titled βWASM (@databio/gtars npm package)β- Add
compareSeqcols - Read bgzip and other multi-member gzip files when digesting FASTA
- Include every
gtars-refgetfix since 0.9.2
CLI (gtars-cli)
Section titled βCLI (gtars-cli)β- Add
gtars refget build --packed [--pack-cap BYTES](alpha),gtars refget compact [--prune-unreferenced], and--pack-cache-mbongtars refget export - Add
--standalone-file-limit Ntogtars refget build;--forcedoes not skip the limit - Add
gtars refget verifyto check stored sequences against their digests - Stream
gtars refget exportto stdout by default; add--all, repeatable--collection,-l/--labeland--molecule(for example,gtars refget export -s store --all | makeblastdb -in - -dbtype nucl) - Keep low-MAPQ reads in
gtars uniwig bamqcby default; add--min-mapq(default 0, matching PEPATAC'sbamQC.py; use 30 for the old behavior)
Other components
Section titled βOther componentsβgtars-uniwig0.10.0: bamqc functions take amin_mapqargumentgtars-core0.5.8: addtry_get_chrom_sizes, which returns an error instead of panickinggtarscrate 0.11.0 andgtars-vrs0.7.3: depend ongtars-refget0.12- R
gtars0.11.0: addverify_store(),refget_store_on_disk(path, packed = TRUE)(alpha),compact(store, prune_unreferenced = FALSE),set_pack_cache(), andstandalone_file_limitonadd_fasta(); replaceexport_fasta_by_digests_storewithexport_fasta(label = ...);get_seqs_bed_filetakeslabeland keeps name headers by default
[0.11.2] -- 2026-11-03
Section titled β[0.11.2] -- 2026-11-03βThis release is the gtars Python package only. The gtars-refget crate changes below change its Rust API, so the crate ships separately as 0.12.0.
RefgetStore (gtars-refget)
Section titled βRefgetStore (gtars-refget)β- Fix residues that did not round-trip through
StorageMode::Encoded:DandHin the IUPAC alphabet decoded asHandV. Fixed in the decoder, so existing stores read correctly without re-importing.Uin the IUPAC alphabet was stored asT.Unow has its own code.U(selenocysteine) andBin proteins were stored asA. The protein alphabet now holdsU,B,Z,OandJ.
- Choose the smallest alphabet that holds every character in a sequence, instead of assuming each alphabet contains the one before it
- Encoding a character that the chosen alphabet cannot hold is now an error instead of silently storing it as another residue (
encode_sequence,SequenceEncoder::finalizeandset_encoding_modenow returnResult) - The 3-bit alphabet stores
Uin place ofX, so RNA fits in 3 bits. Sequences withXnow use the protein alphabet. - Add
verifyto check that every stored sequence still hashes to its digest (Rust, CLIgtars refget verify, Pythonstore.verify(), Rverify_store()) - Faster alphabet detection and encoding
Python bindings (gtars PyPI package)
Section titled βPython bindings (gtars PyPI package)β- Built on the fixes above, so FASTA exported from a store keeps
D,HandV - Add
RefgetStore.verify();set_encoding_moderaisesValueErrorwhen a sequence cannot be encoded
Stores built with 0.11.1 or earlier that contain U or B in proteins, or U in nucleotide sequences, must be re-imported. Run store.verify() to list affected sequences.
[0.11.1] -- 2026-10-29
Section titled β[0.11.1] -- 2026-10-29βRefgetStore (gtars-refget)
Section titled βRefgetStore (gtars-refget)β- Fix
get_sequence_by_namescanning every record of a collection on each call, which made BED extraction quadratic on large collections (regression in 0.10.0) load_sequenceacceptsSQ.-prefixed and MD5 digestsingest_cdotreads the real cdot JSON layout and takes a genome build argument (signature change)- Correct the
open_remoteandopen_localdocs about which files they read
Python bindings (gtars PyPI package)
Section titled βPython bindings (gtars PyPI package)β- Fix the build: handle
StorageMode::Zstd(0.11.0 did not compile). Zstd stores can be read;set_encoding_moderejects Zstd. - Add
compute_vrs_ids_parallelfor multi-threaded VRS ID output load_cdotandload_cdot_gztake an optionalgenome_build
Other components
Section titled βOther componentsβgtars-core0.5.7: detect gzip input by magic bytes instead of file extensiongtars-vrs0.7.2: parallel VRS-to-TSV output with per-worker formattinggtars0.10.1 andgtars-cli0.10.1: depend ongtars-refget0.11; refget commands use the lazy-loading store reads- R
gtars0.10.1: reportStorageMode::Zstd;get_sequence_metadataloads the deferred sequence index gtars-node0.8.1:list_sequencesandget_sequence_metadataload the deferred sequence index
[0.11.0] -- 2026-09-22
Section titled β[0.11.0] -- 2026-09-22βRefgetStore (gtars-refget)
Section titled βRefgetStore (gtars-refget)β- Add
StorageMode::Zstdfor compressed novel/unplaced sequence storage - Lazy-load sequence index on first read (
list_sequences()now returnsResult) - Add content-based sequence name matching
- Add resident overlay for RAM-cached sequence reads
- Detect gzip by magic bytes instead of file extension
- Fix remote listing, export, and WASM build
- Fix encoded sequence ingestion
Python bindings (gtars PyPI package)
Section titled βPython bindings (gtars PyPI package)β- Add RefgetStore docstrings visible in Python (fixes #272)
- Polish refget Python docstrings
[0.10.0] -- 2026-09-05
Section titled β[0.10.0] -- 2026-09-05β- refget: writers now take an exclusive store lock and commit only their own changes; concurrent imports no longer lose collections, and a stale handle no longer resurrects removed rows
- refget: all index, manifest, alias, and sequence files are written atomically (write-temp then rename)
- refget: fix cleanup after a failed import deleting pre-existing sequences on a reopened store
- refget: orphan-sequence GC is linear instead of quadratic; large removals finish in seconds instead of hours
- refget:
export_fastaandget_sequence_by_nameuse the collection's own names and descriptions #270 - refget: add
ImportReportwith per-run counters (n_sequences_written,n_sequences_deduped,n_collections_new);add_sequence_collections_from_fastasnow returns it - refget: add import-time collection aliases (
--collection-alias ns:alias,FastaImportOptions::collection_alias, Pythoncollection_alias=) - refget: add
logical_sequence_bytesto the store manifest; renametotal_disk_size()tological_sequence_bytes() - refget: rename
StoreStatsfieldsn_sequences_loaded/n_collections_loadedton_sequences_in_memory/n_collections_in_memoryacross Rust, Python, R, and Node - refget: encoded stores accept pre-packed sequences at insert time
- cli: add
gtars refget export(-c <digest|ns:alias>,-w 0for unwrapped FASTA,.gzoutput) - overlaprs: remove unused
MultiChromOverlapperError - wasm: fix
encodedByteRangereturn type in typings
[0.9.1] -- 2026-06-17
Section titled β[0.9.1] -- 2026-06-17βPoint release of refget 0.9.1, python 0.9.2, R 0.9.2, node 0.7.1, wasm 0.9.1 #268.
- refget: unify remote on-demand sequence retrieval into three flows:
get_substring(byte-range read),stream_sequence(streaming reader),load_sequence(download and cache) - refget: bulk substring reads on a remote-only sequence download and cache the
.seqonce instead of one request per range - python, R, node: expose
stream_sequence,load_sequence, andload_all_sequences; node no longer auto-downloads whole chromosomes - wasm: add
RemoteRefgetStoreJS layer (HTTP byte-range + OPFS caching) via@databio/gtars/remote
[0.9.0] -- 2026-06-15
Section titled β[0.9.0] -- 2026-06-15β- add
gtars-vrscrate: GA4GH VRS allele identifiers from VCF/HGVS, with an HGVS parser, allele normalization, and transcript-anchored mapping - add Node.js bindings (
gtars-node) - refget: on-disk sequence store overhaul; add binary transcript store and coordinate mapper
- genomicdist: add binary FASTA (
.fab) format with zero-copy mmap access; add stranded region-set operations - uniwig: add BAM QC tooling
- overlaprs: overlap-engine rewrite
- expanded WASM and Python bindings
- correctness fixes across vrs, refget, bamqc, and the Python HGVS AST
[0.8.0] -- 2026-03-19
Section titled β[0.8.0] -- 2026-03-19β- genomicdist: port of genomic distributions #231, bug fixes #244
- uniwig: add streaming implementation alongside the batch parallel one #236
- refget: RefgetStore updates #237
- add
gtars-lolacrate; IGD supports an in-memory database #242 - expose more functionality via Python #241
[0.7.0] -- 2026-02-24
Section titled β[0.7.0] -- 2026-02-24β- update all crates to Rust edition 2024
- refget: add sequence and collection aliases, ancillary digests, seqcol comparison, and FHR metadata; sequences can exist independently of a collection
- refget: add streaming FASTA digest computation in WASM
- uniwig: fix off-by-one errors; add variable-step format
- refactor R bindings; RefgetStore uses
ExternalPtrso R garbage collection works RegionSetreturns an error instead of panicking on bad input
[0.6.0] -- 2026-01-26
Section titled β[0.6.0] -- 2026-01-26β- refget: add FAI (FASTA index) computation and metadata storage
- refget: add remote-access RefgetStore with lazy loading and caching;
SequenceRecordis now an enum (Stub vs Full) - refget: add
on_disk(),in_memory(),load_remote()constructors and export methods
[0.5.3] -- 2026-01-21
Section titled β[0.5.3] -- 2026-01-21β- remove reqwest dependency from gtars-core
- merge the gdrs package into gtars
- genomicdist: add bed classifier
[0.5.2] -- 2025-11-04
Section titled β[0.5.2] -- 2025-11-04β- switch overlap operations to
MultiChromOverlapper - genomicdist: more tests, fix region distribution plot, fix function naming in wasm bindings
- load/write functions accept
AsRef<Path>
[0.5.1] -- 2025-10-08
Section titled β[0.5.1] -- 2025-10-08β- introduce web assembly bindings
- introduce R bindings
[0.5.0] -- 2025-09-25
Section titled β[0.5.0] -- 2025-09-25β- converted the codebase into a workspace with multiple crates
[0.4.0] -- 2025-09-10
Section titled β[0.4.0] -- 2025-09-10β- added
get_max_end_per_chrandnucleotides_lengthmethods toRegionSet
[0.3.0] -- 2025-07-30
Section titled β[0.3.0] -- 2025-07-30β- move digests functionality to refget
- add RefgetStore to refget and its associated python bindings
- integrate support for
bits+ backend types for tokenizers (AIList or BITS) - reworked the tokenization CLI to support the new
bitsandbackendoptions
[0.2.5] -- 2025-04-06
Section titled β[0.2.5] -- 2025-04-06β- Rework tokenizer API to be more consistent with the HuggingFace tokenizers API.
- Updates to
RegionSetto improve performance and usability. - Added file_digest function to RegionSet struct
- Fixed reqwest error in R bindings
- Fixed #107
[0.2.4] -- 2025-03-05
Section titled β[0.2.4] -- 2025-03-05β- Attempt to fix failing python bindings in CI linux #104
[0.2.3] -- 2025-03-05
Section titled β[0.2.3] -- 2025-03-05β- Improved RegionSet, by adding a multiple new methods:
to_bed,to_bed_gz,to_bigbed,identifier(), and others. - Fixed allowed
fasta_digestto acceptPathorbytes#93
[0.2.2] -- 2025-02-18
Section titled β[0.2.2] -- 2025-02-18β[0.2.1] -- 2025-02-11
Section titled β[0.2.1] -- 2025-02-11β[0.2.0] -- 2025-01-13
Section titled β[0.2.0] -- 2025-01-13β- add position shift workflow for bam to bw (was previously added for bam to bed)
- add scaling argument for bam to bw workflow #53
- fix accumulation issue for bam workflow #56
- fix wiggle file (core) beginning at 0 #43
- fix npy file (end) using start instead of end #61
- force zoom to 1 for bed/narrowPeak to bw #34
- fix IGD overlap issue #45
- add ga4gh refget digest functionality #58
- fix wig and npy inconsistency #64
- fix narrowPeak to bw zoom #34
- fix bed to bw fileheader consistency issue #52
- change npy metadata file structure #65
[0.1.2]
Section titled β[0.1.2]β- add position shift workflow for
bamtobw(was previously added forbamtobed) - add scaling argument for
bamtobwworkflow #53 - fix accumulation issue for
bamworkflow #56 - fix wiggle file (core) beginning at 0 #43
- fix npy file (end) using start instead of end #61
- force zoom to 1 for bed/narrowPeak to bw #34
- fix IGD overlap issue #45
- add ga4gh refget digest functionality #58
[0.1.1] -- 2024-12-03
Section titled β[0.1.1] -- 2024-12-03β- hot fix for broken python bindings; remove IGD from the python bindings for now
[0.1.0] -- 2024-12-03
Section titled β[0.1.0] -- 2024-12-03β- Rust implementation of
uniwigthat expands on the C++ version- Uniwig now accepts a single sorted
.bedfile,.narrowPeakfile, or.bamfile. - Outputs now include
.wig,.npy,.bedGraph, and.bw - Accumulations can now be counted via
.narrowPeakscoring
- Uniwig now accepts a single sorted
- Rust implementation of
igdported from the C version (experimental). - Region scoring matrix calculation for region clustering
- Fragment file splitter for pseudobulking
[0.0.15] -- 2024-07-29
Section titled β[0.0.15] -- 2024-07-29β- added meta tokenization tools and a new
MetaTokenizerstruct that can be used to tokenize regions using the meta-token strategy. - added some annotations to the
pyo3#[pyclass]and#[pymethods]attributes to make the python bindings more readable.
[0.0.14] -- 2024-06-11
Section titled β[0.0.14] -- 2024-06-11β- renamed repository to
gtarsto better reflect the project's goals.
[0.0.13] -- 2024-06-03
Section titled β[0.0.13] -- 2024-06-03β- implemented a fragment file tokenizer that will generate
.gtokfiles directly fromfragments.tsv.gzfiles. - fix an off-by-one error in the
region-to-idmaps in theUniversestructs. This was leading to critical bugs in our models.
[0.0.12] -- 2024-05-28
Section titled β[0.0.12] -- 2024-05-28β- optimize creation of
PyRegionSetto reduce expensive cloning ofUniversestructs.
[0.0.11] -- 2024-05-22
Section titled β[0.0.11] -- 2024-05-22β- redesigned API for the tokenizers to better emulate the huggingface tokenizers API.
- implemented new traits for tokenizers to allow for more flexibility when creating new tokenizers.
- bumped the version
pyo3to0.21.0 - added
rust-numpydependency to the python bindings for exporting tokenized regions as numpy arrays. - overall stability improvements to the tokenizers and the python bindings.
[0.0.10] -- 2024-01-24
Section titled β[0.0.10] -- 2024-01-24β- update file format specifications
[0.0.9] -- 2024-01-22
Section titled β[0.0.9] -- 2024-01-22β- start working on the concept of a
.gtokfile-format to store tokenized regions - added basic readers and writers for this format
[0.0.8] -- 2024-01-17
Section titled β[0.0.8] -- 2024-01-17β- add a new
ids_as_strsgetter to theTokenizedRegionSetstruct so that we can get the ids as strings quickly, this is meant mostly for interface with geniml.
[0.0.7] -- 2023-11-30
Section titled β[0.0.7] -- 2023-11-30β- move things around based on rust club feedback
[0.0.6] -- 2024-02-20
Section titled β[0.0.6] -- 2024-02-20β- update python bindings to support the module/submodule structure (https://github.com/PyO3/pyo3/issues/759#issuecomment-1828431711)
- change name of some submodules
- remove
constssubmodule, just add to base - expose a
__version__attribute in the python bindings
[0.0.5] -- 2024-02-19
Section titled β[0.0.5] -- 2024-02-19β- add many "core utils"
- move
gtokenizersinto this package insidegtars::tokenizers - create
tokenizecli - add tests for core utils and tokenizers
- RegionSet is now backed by a polars DataFrame
- new python bindings for core utils and tokenizers
[0.0.4] -- 2023-11-06
Section titled β[0.0.4] -- 2023-11-06β- add type annotations to the python bindings
[0.0.3] -- 2023-11-06
Section titled β[0.0.3] -- 2023-11-06β- work on python bindings initialization
[0.0.2] -- 2023-09-20
Section titled β[0.0.2] -- 2023-09-20β- prepare for first release
[0.0.1] -- 2023-08-15
Section titled β[0.0.1] -- 2023-08-15β- initial setup of repository
- two main wrappers: 1) wrapper binary crate, and 2) wrapper library crate
gtarscan be used as a library crate. or as a command line tool