Skip to main content

Python 3 library for accessing and managing BioMedical sheets

Project description

CI codecov Package Version Python Versions

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

  1. Download the latest ClinVar XML file to the downloads/ directory using wget.
  2. Parse the XML file and convert it into a "raw" TSV file in parsed for each the 37 and 38 release with clinvar_tsv parse_xml. This file contains one record for each ClinVar VCV record.
  3. Sort this file by coordinate and VCV ID using Unix sort, and finally...
  4. 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 ClinVar
  • summary_paranoid_* -- which considers all assessment as equally important, whether the reporter provided assessment criteria or not

References

Documentation in ClinVar:

Changelog

0.6.3 (2023-06-22)

Bug Fixes

  • improved debugging for normalize (#29) (4124a34)
  • memory usage in normalize command (#31) (33f8ac7)

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

  • missing/problematic clinvar version (#19) (b11a8a4)

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)

Uploaded Source

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

Hashes for clinvar-tsv-0.6.3.tar.gz
Algorithm Hash digest
SHA256 1ff604fea0979313d8ee2eb6be7aafa0cd8e7d644d9561c1e06ef03f1a93812f
MD5 8e9d9361519b5c3de894e37aecd50ad0
BLAKE2b-256 62584703c553795d30e2d67858127db96463758261446acc2afa171bae731354

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page