<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nikhil Bharti</title>
    <description>The latest articles on DEV Community by Nikhil Bharti (@nikhil_bharti_4f02cad5a04).</description>
    <link>https://dev.to/nikhil_bharti_4f02cad5a04</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4270959%2Fb25c7f69-a2fa-4b9d-9ea2-873bd95f5708.jpg</url>
      <title>DEV Community: Nikhil Bharti</title>
      <link>https://dev.to/nikhil_bharti_4f02cad5a04</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nikhil_bharti_4f02cad5a04"/>
    <language>en</language>
    <item>
      <title>My Laptop Died, So I Built an Offline Clinical Genomics Tool (19,276 Genes in 15.75 MB SQLite) on My Phone</title>
      <dc:creator>Nikhil Bharti</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:28:50 +0000</pubDate>
      <link>https://dev.to/nikhil_bharti_4f02cad5a04/my-laptop-died-so-i-built-an-offline-clinical-genomics-tool-19276-genes-in-1575-mb-sqlite-on-2011</link>
      <guid>https://dev.to/nikhil_bharti_4f02cad5a04/my-laptop-died-so-i-built-an-offline-clinical-genomics-tool-19276-genes-in-1575-mb-sqlite-on-2011</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fam6d3pvyokfyuoz24aic.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fam6d3pvyokfyuoz24aic.jpg" alt=" " width="800" height="1733"&gt;&lt;/a&gt;A few months ago my laptop broke down, and I had zero budget for cloud GPUs. Instead of waiting until I could buy a new machine, I started coding from my Android phone using &lt;strong&gt;Termux&lt;/strong&gt; and the free tier of &lt;strong&gt;GitHub Codespaces&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That constraint pushed me to build &lt;strong&gt;&lt;a href="https://github.com/Nikhilbharti284/genomic-equity-conformal" rel="noopener noreferrer"&gt;Genomic Equity Conformal (v5.0.0)&lt;/a&gt;&lt;/strong&gt; — an open-source (MIT code, CC BY 4.0 data), local-first quality-assurance sidecar for clinical variant interpretation pipelines that runs on regular CPU hardware under 200 MB of RAM.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Important scope note:&lt;/strong&gt; This is strictly a computational research and clinical-pipeline QA sidecar (Non-SaMD), not a standalone medical diagnostic device.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The Problem I Wanted to Explore
&lt;/h2&gt;

&lt;p&gt;Most DNA variant pathogenicity models are calibrated mainly on European cohorts. When labs run those same models on South Asian, African, or East Asian patients, raw confidence scores can drift, leading to noisy VUS (Variants of Uncertain Significance) triage or missed balancing-selection alleles like Sickle Cell (&lt;code&gt;HBB_E7V&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;On top of that, smaller hospitals and diagnostic labs in India and other developing regions cannot easily send raw patient DNA files to external cloud APIs due to privacy laws (DPDP Act, GDPR, HIPAA) or pay for GPU servers just to run a secondary QA check.&lt;/p&gt;

&lt;h2&gt;
  
  
  How v5.0.0 Works Under 185 MB RAM
&lt;/h2&gt;

&lt;p&gt;Instead of requiring a heavy cloud database or GPU, v5.0.0 builds a compact, air-gapped SQLite WAL store directly from official public releases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pan-Human Exome SQLite WAL Store:&lt;/strong&gt; Indexes all &lt;strong&gt;19,276 HGNC human protein-coding genes&lt;/strong&gt; and &lt;strong&gt;67,402 ClinVar GRCh38 missense variants&lt;/strong&gt; (2-star and above, across 7,336 unique genes) into a single &lt;strong&gt;15.75 MB&lt;/strong&gt; SQLite file. Building it takes ~79 seconds once, and runtime after that is 100% offline (&lt;code&gt;--network=none&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;7-Ancestry Mondrian Conformal Calibration:&lt;/strong&gt; Evaluated across &lt;code&gt;n=9,142&lt;/code&gt; variants (118 genes, 100 homology clusters), achieving &lt;strong&gt;0.9844 OOF AUROC&lt;/strong&gt;, &lt;strong&gt;0.9898 PR-AUC&lt;/strong&gt;, a &lt;strong&gt;90.4% drop in Expected Calibration Error&lt;/strong&gt; (&lt;code&gt;0.0686 -&amp;gt; 0.0066&lt;/code&gt;), and &lt;strong&gt;0 empty prediction sets&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Continental Cohort &amp;amp; Trio Phasing:&lt;/strong&gt; Runs a 20-variant cohort across 5 super-populations (&lt;code&gt;SAS&lt;/code&gt;, &lt;code&gt;AFR&lt;/code&gt;, &lt;code&gt;EAS&lt;/code&gt;, &lt;code&gt;AMR&lt;/code&gt;, &lt;code&gt;EUR&lt;/code&gt;) plus parent-child Trio trans compound-het phasing (verified on &lt;code&gt;ATP7B&lt;/code&gt;) in &lt;strong&gt;~1.45 seconds&lt;/strong&gt; at &lt;strong&gt;~185 MB peak RSS RAM&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reproducibility:&lt;/strong&gt; All &lt;strong&gt;33/33 automated pytest checks&lt;/strong&gt; pass without requiring PyTorch on CPU-only machines, backed by a 71-file SHA-256 RO-Crate manifest.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Locally (No GPU Needed)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
git clone [https://github.com/Nikhilbharti284/genomic-equity-conformal.git](https://github.com/Nikhilbharti284/genomic-equity-conformal.git)
cd genomic-equity-conformal
pip install numpy scikit-learn pandas scipy psutil joblib pytest
pip install -e . --no-deps --no-build-isolation

# Build the 15.75 MB offline SQLite store (~79s, needs internet once)
python3 src/build_v5_exome_store.py

# Run the 20-variant global cohort audit + Trio phasing check
python3 src/v5_global_cohort_audit.py

# Verify all 33 tests
python3 -m pytest -v
[](https://github.com/Nikhilbharti284/genomic-equity-conformal)[](https://nikhilbharti284.github.io/genomic-equity-conformal/)[](https://drive.google.com/file/d/1Pb96mE9u1tV_icle6zGHkfdLnqzoKXqJ/view?usp=drivesdk[](https://doi.org/10.5281/zenodo.24525316
![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/tpvylcx6o1ock9n9giwy.jpg)))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>machinelearning</category>
      <category>sql</category>
    </item>
  </channel>
</rss>
