Skip to content

Commit e2cbcc5

Browse files
authored
issue-96 (#97)
closes issue #96
1 parent 030ad48 commit e2cbcc5

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The chrome extension is used by the ClinGen curation workflow (link) ...
66
- The google sheet containing these curations is then utilized by the downstream systems to generate QC reports, statitistics and submissions of these curations to be regularly submitted to NCBI clinvar to support the eventual integration into the actual ClinVar dataset.
77

88
## Release Notes
9+
### v3.2
10+
* ClinVar UI changes on Jun.09.2025 introduced issues with the germline SCV table information scraping from the html. This has been resolved.
911

1012
### v3.1
1113
* ClinVar UI changes on Feb.24.2025 introduced issues with the top-level VCV information scraping from the html. This has been resolved.

scvc/content.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const SCV_RANGE = 'SCVs';
44
// Inform the background page that
55
// this tab should have a page-action.
66
chrome.runtime.sendMessage({
7-
from: 'content',
8-
subject: 'showPageAction',
7+
from: 'content',
8+
subject: 'showPageAction',
99
});
1010

1111
function getMatch(text, re, grp) {
@@ -18,7 +18,7 @@ function getMatch(text, re, grp) {
1818
}
1919

2020
function extractClinVarData() {
21-
21+
2222
// Collect the necessary data.
2323
var cond_origin_re = /\W*Allele origin:.*?(\w+([\,\s]+\w+)*)/is;
2424
var review_method_re = /(practice guideline|reviewed by expert panel|no assertion provided|no interpretation for the single variant|criteria provided, multiple submitters, no conflicts|criteria provided, single submitter|criteria provided, conflicting interpretations|no assertion criteria provided|no classification provided|Flagged submission).*?Method:.*?([\w\,\s]+)*/is;
@@ -47,20 +47,21 @@ function extractClinVarData() {
4747

4848
var variantBox = document.evaluate("//div[@id='new-variant-details']//dl", document, null, XPathResult.ANY_TYPE, null );
4949
var variantBoxHTML = variantBox.iterateNext().innerHTML;
50-
50+
5151
clinvarData.name = document.querySelectorAll('#variant-details-table div div dl dd p')[0].innerText;
5252
clinvarData.vcv = getMatch(variantBoxHTML, vcv_accession_re, 1);
5353
clinvarData.variation_id = getMatch(variantBoxHTML, vcv_variation_id_re, 1);
5454
clinvarData.vcv_review = vcvReviewStatus;
5555
clinvarData.vcv_interp = vcvClassificationText;
56-
56+
5757
var timelineArray = document.querySelectorAll('table.timeline-table tbody tr td');
5858
clinvarData.vcv_most_recent = timelineArray[2].innerHTML;
5959
clinvarData.vcv_eval_date = timelineArray[3].innerHTML;
60-
61-
var scvarray = document.querySelectorAll('#new-submission-germline table tbody tr');
60+
61+
62+
var scvarray = document.querySelectorAll('.submissions-germline-list tbody tr.germline-sub-col');
6263
scvarray.forEach(myFunction);
63-
64+
6465
function myFunction(value, index, array) {
6566
var interp_match = value.cells[0].innerHTML.match(interp_re);
6667
var review_method_match = value.cells[1].innerHTML.match(review_method_re);

scvc/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "ClinVar Curator (v3)",
4-
"version": "3.1",
4+
"version": "3.2",
55
"description": "Extract SCVs for annotation based on the ClinGen ClinVar Curation prolicies.",
66

77
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwC5g4vkDlMPFTsByPnG9WI9lY+IPWddES8SK3cxCuBQE5qSdgEgtDhrRLhXSvcIdUUCDwD7JzEPdQ0IhC3APwsKQJPQlDRweZvyFaTJOm6r5Blp3HvLphDuKZQwUoEzMuXK7IAby05kXPZTMSHas+0m00hHoR8ls//tqKoYt7N/lVj6Mry6nSpr5wFU17HPO8MksyxFlNDhu5OYcgOdTNjUiWthjZ8Xxd0ajdaR1QRoqVCQduUTSAzeptQ1+zYZtEX7+HF8jfZqc5BQDa5GoCuDyTvFvQAHl3Phz3zMWpvcGWR3jCMHD5zthiO8NKX+h2fXbGGrYhuwtQmHLWmTAsQIDAQAB",

0 commit comments

Comments
 (0)