Flag classifications whose sample's VCF was re-sent
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reading seqauto/upload_links.py at link_samples_and_vcfs_to_sequencing, where replaced_by is set, and trace how classifications are linked to samples and how classification flag types are defined. Check tests for VCF replacement and classification flags to find the relevant coverage. Done means classifications for the replaced sample receive a resolvable flag naming the replacement VCF without changing the classification; the issue's questions about repeated sends and notifications still need a decision.
Written by the indexing model from the issue text.
Description
🤖 Written by Claude
Problem
When a pipeline re-sends a single-sample VCF, a new VCF and Sample are imported. Classifications made from the earlier sample (Classification.sample) keep pointing at it, with nothing telling the lab that newer calls exist and they may want to re-check. This has been the case for years. Before #2929 nothing recorded the replacement at all.
#2929 (PR #2930) added VCF.replaced_by / replaced_date, set in seqauto/upload_links.py:link_samples_and_vcfs_to_sequencing. With that in place:
- Analyses warn about the replacement.
- The VCF, sample, sequencing run and variant pages show it.
- Auto-launched analyses that someone has worked in aren't reloaded.
Classifications still get nothing. That holds whether they were made inside an analysis or directly from the sample.
Proposed
- A new classification flag type, raised on every classification whose sample belongs to a VCF that has just been marked replaced. It would be raised in the same place
replaced_byis set, and name the replacement VCF. - The lab resolves the flag once they've re-checked, or decided it doesn't matter.
- The classification itself is not changed.
Open questions
- Should the flag be raised once per classification, or again each time the VCF is re-sent (a chain of re-sends)?
- Should classifications on VCFs replaced before
replaced_byexisted be backfilled? Probably not: that link can't be recovered. - Should it be a flag, or a notification to the lab?
Related: #2929, #2923.
- Dominant language
- Python
- Stars
- 31
- Forks
- 4
- Avg merge
- 4h 52m
- Merged PRs (30d)
- 183
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SACGF/variantgrid
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
SACGF/variantgrid#2964 · 1 comment ·
Maintainers usually reply within 1 day
-
Genome build now duplicated in "imported as" on allele pagePossibly taken @TheMadBug claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
SACGF/variantgrid#2950 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
SACGF/variantgrid#2865 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SACGF/variantgrid#2647 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
SACGF/variantgrid#2341 · 3 comments ·
Maintainers usually reply within 1 day
All issues in SACGF/variantgrid
Similar issues
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPossibly taken A pull request linked to this issue is open or already merged. Opengood first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 · 3 comments ·
Maintainers usually reply within 1 day
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPossibly taken @AshutoshSingh840 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainers usually reply within 1 day