Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
Member
|
Thanks for the contributions @rpinho. Similar to my question in tskit-dev/msprime#2554, I would like to get a sense of the motivation behind these contributions. My sense is that VCF output speed is not really a bottleneck for most workflows, and so this optimisation (which requires review effort) may not be worth the overall time investment. If this is something that you, personally, need for your work, we are of course happy to work with you. |
Contributor
Author
|
Thanks for asking. Code analysis, not usage. I'm trying to play around with AI for science. I'm doing this with AI agents, so if these aren't useful, I'll close them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
write_vcfconstructs site and mutation records to find each site's ID and copies each decoded variant. Stream variants when there is no sample mask, use sample lists when the sample order matches, and write genotype digits into the output buffer. Exporting 10,000 samples and 213,963 sites to the null device took 2.06 seconds instead of 5.60 seconds, with matching output digests. The VCF tests check the export options and that a sample-mask callback can retain the variants it receives.PR Checklist:
🤖 Generated with Claude Code
https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N