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

Pull kmer length and recoding alphabet from model in search mode #80

Open
wichne opened this issue Sep 8, 2022 · 0 comments
Open

Pull kmer length and recoding alphabet from model in search mode #80

wichne opened this issue Sep 8, 2022 · 0 comments
Assignees

Comments

@wichne
Copy link
Collaborator

wichne commented Sep 8, 2022

Users won't know parameters used to build model. That information is encoded in the model object, however.
Search mode should not require user parameterization. Instead that information should be read directly from the model being searched. If more than one model is being searched, might be a good idea to check if they were all built using the same parameters.

christinehc added a commit that referenced this issue Oct 4, 2023
changelog:
- `k`, `alphabet`, and `alphabet_name` are now properties of `snekmer.model.SnekmerModel` object
  - The above properties can be set via standard property setters
- `step_name` and `snekmer_version` have been converted to properties rather than attributes. This designation is more suitable for the type of information being stored.
- `model_params` has been added as an attribute of `snekmer.model.SnekmerModel` object to prevent separate `AttributeError` issue
- addresses #80
christinehc added a commit that referenced this issue Oct 4, 2023
changelog:
- previous method of loading objects via direct unpickling does not correctly preserve properties and the property getter will no longer work.
- an explicit model loader object has been written to correctly inherit properties and prevent the above. Will be necessary to correctly pull these properties for future Snekmer search update.
- addresses #80
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

No branches or pull requests

2 participants