Python 3 library for accessing and managing BioMedical sheets
Project description
Clinvar-TSV
The code in this repository allows to first download,t hen convert ClinVar XML files into TSV files (one for b37 and b38).
The TSV files will contain one entry for each ClinVar <ReferenceClinVarAssertion>
entry with important information extracted from ClinVar.
The code is used by bihealth/varfish-db-downloader.
Overview
Users usually run the tool by calling clinvar_tsv main
.
$ clinvar_tsv main \
--cores 2 \
--b37-path hs37d5.fa \
--b38-path hs38.fa
This will call a Snakemake workflow that will in turn do the following
- Download the latest ClinVar XML file to the
downloads/
directory usingwget
. - Parse the XML file and convert it into a "raw" TSV file in
parsed
for each the 37 and 38 release withclinvar_tsv parse_xml
. This file contains one record for each ClinVar VCV record. - Sort this file by coordinate and VCV ID using Unix
sort
, and finally... - Merge the lines in the resulting TSV file (for each genome build) by VCV ID and produce aggregate summaries for each VCV.
There are two summaries:
summary_clinvar_*
-- which merges record which attempts to imitate the approach taken by ClinVarsummary_paranoid_*
-- which considers all assessment as equally important, whether the reporter provided assessment criteria or not
References
Documentation in ClinVar:
- https://www.ncbi.nlm.nih.gov/clinvar/docs/review_status/
- https://www.ncbi.nlm.nih.gov/clinvar/docs/help/
- https://www.ncbi.nlm.nih.gov/clinvar/docs/variation_report/
Changelog
0.6.3 (2023-06-22)
Bug Fixes
0.6.2 (2023-06-21)
Bug Fixes
- failure to determine location only goes to debug level (#22) (76bc510)
- higher verbosity in Snakemake rules (#26) (a3fc327)
- interpret --cores argument (#24) (3b09803)
- map "low penetrance" to "uncertain significance" (#25) (b2708d7)
- no verbose output by default (#27) (0ad10cb)
- reduce tqdm progress display unless on TTY (#21) (770b0c8)
0.6.1 (2023-06-21)
Bug Fixes
0.6.0 (2023-06-21)
Features
Documentation
0.5.0 (2023-05-03)
Features
0.4.1
- Also writing out
set_type
column (#10).
0.4.0
- Greatly refining record merging strategy (#6). Also, providing both a ClinVar-like and a paranoid merging scheme.
- Improving CI (#7)
0.3.0
- Various refinements of the code.
- Adding tests and CI.
0.2.2
- Fixing bug with quotes.
0.2.1
- Fixing bug in setting clinical significance flags.
0.2.0
- Complete refurbishing of XML parsing, using models based on python-attrs.
- Removing old tests.
0.1.1
- Fixing installation of Snakefile.
0.1.0
- First actual release, versioning done using versioneer.
- Everything is new!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clinvar-tsv-0.6.3.tar.gz
(165.0 kB
view details)
File details
Details for the file clinvar-tsv-0.6.3.tar.gz
.
File metadata
- Download URL: clinvar-tsv-0.6.3.tar.gz
- Upload date:
- Size: 165.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ff604fea0979313d8ee2eb6be7aafa0cd8e7d644d9561c1e06ef03f1a93812f |
|
MD5 | 8e9d9361519b5c3de894e37aecd50ad0 |
|
BLAKE2b-256 | 62584703c553795d30e2d67858127db96463758261446acc2afa171bae731354 |