semvec/pypi-packages huggingface dataset:
spectrum-plot 0.2.0
Interactive spectrum plot. Update FFT plot on every new sampled data
Requires Python: >=3.6

## spectrum plot

### plotting FFT of 1D data, with live plot update

usage example:
```python
import numpy as np
from spectrum_plot import create_fft_plot


plot = create_fft_plot()
n = 200
seconds = 0.1
t = np.linspace(0, seconds, n)
nyquist = n / seconds / 2
for freq in np.linspace(100, nyquist, 100):
    sine = np.sin(2 * np.pi * t * freq)
    plot.update_raw_data(sine, seconds=seconds)
```
![](https://github.com/lisrael1/spectrum_plot/blob/main/src/spectrum_plot_examples/animated_fft.gif?raw=True)

In the examples folder, you can locate a code that includes the addition of music notes at the graph.
![](https://github.com/lisrael1/spectrum_plot/blob/main/src/spectrum_plot_examples/spectrom_with_notes.png?raw=True)
satanua 0.0.3
A library for converting logic formulas to .atanua files
Requires Python: >=3.10

## Satanua
### Setup
```
pip install satanua
```
### Usage
##### Warning! This library is not meant to be used under any circumstances in production code!!!

First, create ObjStack and WireStack. All the objects and wires are stored here and from there can be accessed and deleted from the scene.
```python
from satanua import ObjStack, WireStack
obj_stack = ObjStack()
wire_stack = WireStack()
```
Now, to create a decoder, use
```python
from satanua import Decoder, DecoderModes 

decoder = Decoder(
    obj_stack=obj_stack,
    wire_stack=wire_stack,
    formulas=[
        [
            [0, 1, 0],
            [1, None, 1],
            [1, 0, 1]
        ],
        [
            [0, None, None],
            [1, 0, 0],
            [0, 0, 1]
        ]
    ],
    modes=[
        DecoderModes.AND_OR,
        DecoderModes.OR_AND
    ],
    coordinates=[0, 0]
)
decoder.build()
```
`formulas`+`modes` in this example is the equivalent of

```math
\displaylines{OutVal_1 = \overline{A}B\overline{C}+AC+A\overline{B}C \\ OutVal_2 = (\overline{A})*(A+\overline{B}+\overline{C})*(\overline{A}+\overline{B}+C)}

```


You can then export the whole scene to .atanua using 
```python
from satanua import render_all

render = render_all(
    os=obj_stack,
    ws=wire_stack,
    rotate=0,
    mirror_x=False,
    mirror_y=False
)
with open("render.atanua", "w") as f:
    f.write(render)
```

Render.atanua
![image](./render.png)
relquant 0.0.1
A package for quantifying relation properties.
Requires Python: >=3.7

# relquant
Relation quantitifcation. Real-world data often doesn't fit into being exactly one type of nicely-defined relation. Popular classes of relations often have universal quantifiers that measurement error can violate. But sometimes data are 'close to' nicely defined relations, and with a little bit of help that can be elucidated.
mutyper 1.0.2
ancestral k-mer mutation types for SNP data
Requires Python: >=3.8

![](docs/_static/logo.png)

A Python package and command line utility for annotating the local ancestral sequence context of biallelic SNPs

[![Build and test](https://github.com/harrispopgen/mutyper/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/harrispopgen/mutyper/actions/workflows/build-and-test.yml)
[![Docs build and deploy](https://github.com/harrispopgen/mutyper/actions/workflows/docs-build-and-deploy.yml/badge.svg)](https://github.com/harrispopgen/mutyper/actions/workflows/docs-build-and-deploy.yml)
[![Python package](https://github.com/harrispopgen/mutyper/actions/workflows/python-publish.yml/badge.svg)](https://github.com/harrispopgen/mutyper/actions/workflows/python-publish.yml)
[![status](https://joss.theoj.org/papers/db2fb9b0e9fa1b380ff75655796e7bf1/status.svg)](https://joss.theoj.org/papers/db2fb9b0e9fa1b380ff75655796e7bf1)

#### See [documentation](https://harrispopgen.github.io/mutyper) for install and usage information.

Pairs well with the package [`mushi`](https://github.com/harrispopgen/mushi), which performs mutation spectrum history inference.