-
Notifications
You must be signed in to change notification settings - Fork 80
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
How to use low level functions? #489
Comments
They are not exposed because they would trigger a lot of data copying from C++ to Python, but they are indeed convenient to have for exploration. |
maybe this is easier with the oxidation (=> rust) that happened with 3.0? |
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
The main issue is none of these exist as separate functions anymore... They are all defined internally in |
Yeah I ended up implementing k-merization that on my own: https://github.com/czbiohub/kh-tools/blob/master/khtools/compare_kmer_content.py#L77 though it doesn't return the canonical k-mer. @luizirber How would modularizing and exposing to Python make it out of sync with |
It wouldn't make it out of sync if So unless anyone sees another approach, it's either
Maybe a way of avoiding the out-of-sync issue: adding the k-merization functions in Rust, expose to Python, and use hypothesis to generate data and do an oracle test with |
On Tue, Feb 18, 2020 at 08:43:47AM -0800, Luiz Irber wrote:
Maybe a way of avoiding the out-of-sync issue: adding the k-merization functions in Rust, expose to Python, and use [hypothesis][1] to generate data and do an oracle test with `add_sequence` (like this one from [set_abundances][2])?
AND/OR we could write explicit tests, too.
|
WHOA Hypothesis looks really interesting. There's definitely a ton of weird
edge cases with k-merization so I can see how hypothesis would help there.
…---
Olga Botvinnik, PhD
olgabotvinnik.com <http://www.olgabotvinnik.com>
On Sun, Feb 23, 2020 at 10:13 AM C. Titus Brown <[email protected]>
wrote:
On Tue, Feb 18, 2020 at 08:43:47AM -0800, Luiz Irber wrote:
> Maybe a way of avoiding the out-of-sync issue: adding the k-merization
functions in Rust, expose to Python, and use [hypothesis][1] to generate
data and do an oracle test with `add_sequence` (like this one from
[set_abundances][2])?
AND/OR we could write explicit tests, too.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#489>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGE24FLLAR5VQ6IR6SQL7DREK4DRANCNFSM4FDQ4OBQ>
.
|
closing as obsolete. |
I would like to use the C++ implementation of two low level functions similar to
These are
Are they "exposed", i.e. can I import and use them somehow?
Thank you
The text was updated successfully, but these errors were encountered: