-
Notifications
You must be signed in to change notification settings - Fork 309
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
Adding fixed depth prefix trie implementation #268
Conversation
All automated tests passed. |
Can you rebase this off of master again, Frank? |
Definitely; I'm OOO today but will rebase tonight.
It's actually a very large delta. The scala.collection.immutable.Map trait requires supporting:
These three features add a lot of methods, and they're not all useful for us.
Agreed; I wasn't sure of that either. I'm open to whichever. Also, I'll take a look at your failing tests later today. |
Got it; nevermind on that comment then. |
@tdanford I've intentionally chosen to throw exceptions if you present an incorrect length key, since an invariant of this data structure is that all keys have the same length. If you providing it with a key with an incorrect length, you're violating the invariant and should get an exception. |
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM-prb/14/ |
@tdanford I've just made the changes you suggested (rename, improve docs, move package), and rebased on top of master. I removed the test you added for the find method, and clarified the docs for the method: I explicitly wasn't checking for key length in that method as it is class private and is expected to only be called after error checking has been done. Also, I squashed down your two test commits into a single commit. I had to rewrite your commit message for it to make sense, so let me know if you'd rather me change the message on 33cc463. |
All automated tests passed. |
All of the changes LGTM. |
He says he's fine with that. |
OK; I need to run to a meeting but will rebase afterwards. |
@carlyeks squashed! Sorry for the delay. |
All automated tests passed. |
All automated tests passed. |
Adding fixed depth prefix trie implementation
Thanks, Frank! |
This is part of the read error correction work. This adds a prefix trie trait, as well as two classes to implement a fixed key length prefix trie (and tests). Ultimately, this will be used to look up k-mers during a read error correction transformation.