-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implement truncation of tree sequences to specified genome intervals #615
Comments
Thanks @bguo068. Do you have a time frame in mind for needing such a feature? I'm trying to prioritize/triage things for the next release. |
Thank you for your impressive work on the development and maintenance of this repository. I am currently enhancing my skills to contribute more effectively to Rust projects. I would like to prepare a pull request and aim to submit it within the next month. Could you please suggest specific areas of this codebase or provide some initial steps where I should start? I would greatly appreciate your guidance as I begin this process. |
In terms of design:
In terms of implementation:
|
Thanks for the guidance. I will follow these points carefully in preparation for the PR. |
In C, the metadata are represented using |
@bguo068 I just released an alpha of 0.15 to crates.io. There are some breaking changes in this release, but I expect that most people won't notice them. The docs are up on docs.rs but you have to manually select the new version because it is a pre-release and docs.rs shows the latest stable release by default. |
It will be easier to access the new features and docs. Thanks for the alpha release. |
Closed via #635 |
The recent addition of a method allowing the tree iterator to start at a specific position (#435) is a significant improvement. However, there are scenarios where it would be beneficial to trim or truncate the tree sequence to specific genome intervals. This functionality would (1) simplify the handling of tree sequences by reducing their size, and (2) enable users to focus on particular regions of interest, excluding irrelevant areas.
Currently, a Python API for this feature exists within tskit (tskit.TreeSequence.keep_intervals), but there is no equivalent C API or Rust binding available. The implementation could potentially be adapted from the existing Python method as outlined here: tskit TableCollection.keep_intervals.
Implementing a
keep_intervals
method for theTreeSequence
orTableCollection
structures would greatly enhance functionality and user flexibility in managing tree sequences.The text was updated successfully, but these errors were encountered: