Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRG: update serialization code #49

Merged
merged 7 commits into from
Sep 23, 2024
Merged

Conversation

ctb
Copy link
Contributor

@ctb ctb commented Sep 23, 2024

NOTE: PR into #31

This PR updates #31 in the following ways:

@ctb ctb mentioned this pull request Sep 23, 2024
@ctb ctb mentioned this pull request Sep 23, 2024
@Adamtaranto Adamtaranto merged commit 4e97c7e into dev_serialisation Sep 23, 2024
15 checks passed
@Adamtaranto Adamtaranto deleted the dev_serialization_ctb branch September 23, 2024 02:47
Adamtaranto added a commit that referenced this pull request Sep 23, 2024
* Add toml package as testing dependency.

* Add version attribute to new KmerCountTable instances.

* Test version attribute.

* Track total bases consumed with attr consumed

* Add tests for consumed attr

* Add sum_counts attr to get total counts in table.

* Add tests for sum_counts attr

* Add __len__ method to get total unique kmer count.

* Add tests for __len__ method.

* Add __getitem__ and __setitem__ methods

* Tests for __getitem__ and __setitem__ dunder methods.

* Make KmerCountTable iterable

* Add tests for __iter__

* Add serde and flate2

* Add serialisation support

* Add serialisation tests

* Add niffler

* sort imports

* Use niffler for gzip read/write

* Style fixes by Ruff

* bump serde

* MRG: update serialization code  (#49)

* Do format updates on top of current commit rather than head. (#46)

* update serde_json version

* switch to using built-in temp_path

* write two additional tests

* Style fixes by Ruff

* clean up docstrings viz cargo doc --document-private-items

---------

Co-authored-by: Adam Taranto <[email protected]>
Co-authored-by: ctb <[email protected]>

---------

Co-authored-by: Adamtaranto <[email protected]>
Co-authored-by: C. Titus Brown <[email protected]>
Co-authored-by: ctb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants