Snv-spectrum

Latest version: v0.2.0

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.0

Easily download and plot COSMIC signatures:

python
from snv_spectrum import get_cosmic_signatures

cosmic_signatures = get_cosmic_signatures()

fig, axes = plot_spectrum(cosmic_signatures['Signature 14

![signature-14](https://user-images.githubusercontent.com/4634699/36346999-78f454c2-1400-11e8-872f-54b74ab1812b.png)

0.1.0

Easily construct and normalize base substitution spectra including the classic 96 trinucleotide base substitution spectra as made famous by Alexandrov _et. al._ (2013).

python
import numpy

from snv_spectrum import plot_spectrum

spectrum = Spectrum(k=3, reference_notation='pyrimidine')

for snv, count in zip(spectrum.substitutions, range(96)):
spectrum[snv] = numpy.random.randint(20)

fig, axes = plot_spectrum(spectrum, kind='density')


![demo-plot-random](https://user-images.githubusercontent.com/4634699/36347003-b17c4d86-1400-11e8-911f-dd64bbafc541.png)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.