clintval / nucleic

Analysis and plotting library for base substitution spectra and signatures

Home Page:https://nucleic.rtfd.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nucleic

Testing Status codecov Documentation Build Status PyPi Release Python Versions MyPy Checked Code style: black

Analysis and plotting library for base substitution spectra and signatures.

❯ pip install nucleic

Features:

  • Model DNA and variant alleles within their local context using an elegant API
  • Combine single nucleotide variants into spectrums of mutagenesis
  • Fetch COSMIC signatures of mutation, as well as other published signatures
  • SVG plotting functions for displaying single nucleotide variant spectrums

Read the documentation at: nucleic.readthedocs.io

from nucleic.cosmic import fetch_cosmic_signatures
from nucleic.plotting import trinucleotide_spectrum

signatures = fetch_cosmic_signatures()
canvas, (ax1, ax2) = trinucleotide_spectrum(signatures['Signature 24'])

signature-24

About

Analysis and plotting library for base substitution spectra and signatures

https://nucleic.rtfd.io/

License:MIT License


Languages

Language:Python 100.0%