Conversation
- Remove x86-only stream-vbyte features from default deps for macOS ARM - Gate x86 SIMD (Ssse3 decode, Sse41 encode) on target_arch = x86_64 - Fix Cargo.toml: move target-specific deps to end so other deps apply on all targets Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Summary of ChangesHello @jdidion, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly extends the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for annotating BED files, introducing a new bed feature and a corresponding annotation command. The changes are well-structured, including making the stream-vbyte dependency portable across architectures. I've identified a critical issue with argument parsing that could lead to a panic, a high-severity issue with error handling on file parsing, and several medium-severity opportunities for performance and code clarity improvements. Overall, this is a great addition, and with these changes, it will be even more robust and efficient.
- Validate --ref-col/--alt-col >= 1 to prevent subtraction overflow panic - Replace .expect() with graceful skip on invalid BED start position - Use binary search (partition_point) for LongVariant scan in variants_at_position instead of linear scan - Use split_off to avoid redundant allocation in kmer16::decode_var - Remove duplicated .bed extension check in detect_format Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
brentp
left a comment
There was a problem hiding this comment.
I'd also want some update to the README and some end-to-end tests for this. It's a big change and I haven't scrutinized it completely.
| } | ||
|
|
||
| let chrom = fields_vec[0]; | ||
| let (pos_0based, extra_cols, ref_allele, alt_allele, output_prefix): (u32, Vec<&str>, Vec<u8>, Vec<u8>, Vec<&str>) = if is_tab { |
There was a problem hiding this comment.
so if it's not bed, we assume 1-based start?
There was a problem hiding this comment.
Yes - the assumption for the "generic" tab-delimited format is that the first four columns are chromosome, position (1-based), ref, alt.
Another option would be to only assume the first two columns are chromosome, position. If it is bed format, then we also assume the position is 0-based and the third column is end position, otherwise the position is 1-based. Rather than assuming the ref and alt columns, we could always require the user to specify them with the --ref-col and --alt-col options. I guess if it's not a bed file and the ref and alt columns aren't specified, you just treat every variant as length 1.
- Validate --ref-col/--alt-col >= 1 to prevent usize underflow - Add doc comments on decode_var and variants_at_position - Remove unused noodles dependency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…to be specified for generic tab format
|
Hi @jdidion sorry for letting this sit for so long. Have you been using this without problems for a while? Still interested in getting it merged? |
|
Yes! Working well for me so far. Thanks! Lmk if you see any improvements/fixes you’d like before merging.
… On Apr 30, 2026, at 8:02 AM, Brent Pedersen ***@***.***> wrote:
brentp
left a comment
(brentp/echtvar#54)
<#54 (comment)>
Hi @jdidion <https://github.com/jdidion> sorry for letting this sit for so long. Have you been using this without problems for a while? Still interested in getting it merged?
—
Reply to this email directly, view it on GitHub <#54 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAA6XHW53WLOBX7AL7SR7UD4YNTIPAVCNFSM6AAAAACVJXG2F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNJTGU4DIMJTGM>.
You are receiving this because you were mentioned.
|
This PR adds
tabandbedfeatures (enabled by default).The
tabfeature supports reading a generic tab file with the first four columns being chrom, pos (1-based), ref, alt.The
bedfeature pulls innoodles-beddependency and uses it for BED file reading/writing. The user can optionally specify the indices of the ref and alt columns (if any), otherwise separate output records are written for each alt allele of each multi-allelic variant. A header comment line is added to the output with the column names.Note this is stacked on
jdidion:arm-support-stream-vbyte-scalar.