Repository navigation
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)
- 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)
- 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)
- Add
compareSeqcols - Read bgzip and other multi-member gzip files when digesting FASTA
- Include every
gtars-refgetfix since 0.9.2
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
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