Search results - show the variant kind badge on structural variants

Open Beginner friendly
#2,804 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
search

Research direction

Start by tracing how Variant search results render the variant identifier, then inspect the existing VariantGridFormat.variantKindBadge usage in grids, the variant page locus table, or the variant card. Add the same badge next to the identifier for structural variants. Done means search results distinguish variant kinds such as DEL and DUP with the existing badge.

Written by the indexing model from the issue text.

Description

🤖 Written by Claude

Searching a structural variant's span (e.g. chr1:169519049-169520049, as the Variant column writes it) returns every symbolic variant at that position and length. A deletion and a duplication called over the same interval come back as two results that look identical at a glance - the only difference is the <DEL> / <DUP> suffix on the coordinate.

The grids, the variant page's locus table and the variant card show a coloured variant-kind badge (VariantGridFormat.variantKindBadge) for DEL/DUP/INV/CNV, gene-level copy number (GAIN/LOSS) and fusions. Search results don't.

Show the same badge on Variant search results, next to the identifier.

Dominant language
Python
Stars
31
Forks
4
Avg merge
10h 11m
Merged PRs (30d)
369

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SACGF/variantgrid

All issues in SACGF/variantgrid

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.