Sample QC status (pass/warn/fail) with a warning on analyses that use a failed sample
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reading snpdb/models/models_cohort_stats.py, seqauto/views.py:view_sample_qc_tab, and analysis/views/views_node.py:node_snp_matrix to trace the existing QC signals and where sample and analysis details are shown. Done means a per-sample pass/warn/fail status uses the listed signals and configurable thresholds, appears on sample pages and grids, and warns on analyses and nodes that use samples with warnings or failures.
Written by the indexing model from the issue text.
Description
🤖 Written by Claude
Problem
A negative analysis result only means something if the sample passed QC, but nothing in VariantGrid says whether a sample passed. The signals exist and are scattered:
CohortGenotypeStats(snpdb/models/models_cohort_stats.py) has SNP/indel and het/hom counts andchrx_sex_guess, shown as "Detected Sex" on the sample page- The family wizard warns when the proband's sex doesn't match (
proband_sex_mismatch.js), but only there - Ti/Tv is computed only on a node's SNP matrix (
analysis/views/views_node.py:node_snp_matrix), not per sample - The sample page's QC tab (
seqauto/views.py:view_sample_qc_tab) shows the sequencing pipeline's QC when the sample came from a sequencing run, as raw values
So a contaminated sample, one with the wrong sex, or one uploaded against the wrong build can go through an analysis without anyone being told.
Suggestion
- A pass / warn / fail QC status per sample, computed from the signals above: detected sex vs the recorded sex on the patient/sample, Ti/Tv, het/hom ratio, variant counts, and the seqauto QC when it is there
- Thresholds configurable per enrichment kit (exome, panel and WGS have different expected counts and ratios)
- The status on the sample page and the sample grids
- A warning on an analysis (and on the node) when a source sample has failed or warned, so the person reviewing a negative result sees it
Related: #1748 (seqauto run/QC pages), #1125 (QC graphs).
- 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