-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sequence from disk #18
Conversation
c469836
to
5b228a0
Compare
println!( | ||
"{path_start} {path_end} {start} {end} {contains_start} {contains_end} {overlap}" | ||
); | ||
// println!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for commenting this out?
let mut rows = stmt | ||
.query_map((block_id,), |row| Ok((row.get(0)?, row.get(1)?))) | ||
.query_map((block_id,), |row| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all going to have to go somewhere else to work with the new edges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe edge_pairs_to_block: https://github.com/ginkgobioworks/gen/blob/main/src/models/path.rs#L178C12-L178C31
@@ -2,19 +2,35 @@ use rusqlite::types::Value; | |||
use rusqlite::{params_from_iter, Connection}; | |||
use sha2::{Digest, Sha256}; | |||
|
|||
#[derive(Debug)] | |||
#[derive(Debug, Default)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not bad, I'd say the default params works fairly reasonably
Overall looks good, but I'd like to take another look once it's been rebased and updated |
implemented via #24 |
Support storing sequences on disk instead of in db.
I removed the bio crate in favor of noodles as we are extensively using that elsewhere. I tried a new pattern for making it simpler to expand the Sequence model in the future. I know we discussed the builder/default pattern, and one thing I think may point to the builder being better is it will have fewer copies and less use of to_string.