Data analysis of peak and valley regions
Project description
Peakoscope
Peakoscope is a python package for hierarchical analysis of peak and valley regions in numeric data.
- Peak and valley regions can be nested, for example, when a large peak region contains smaller subpeak regions.
- Based on a one-pass algorithm that finds all peak regions and orders them into a tree.
- Classes for peak/valley objects and tree objects.
- Optional interfaces to matplotlib, pandas and polars.
Usage examples
Compute the tree of nested peak regions in a data set:
>>> import peakoscope
>>> data = [10, 30, 40, 30, 10, 50, 70, 70, 50, 80]
>>> print(peakoscope.tree(data))
0:10
├─5:10
│ ├─9:10
│ └─6:8
└─1:4
└─2:3
From the tree, select "important" peak regions and print their slice of data:
>>> for peak in peakoscope.tree(data).filter():
... print(data[peak.slice])
...
[80]
[70, 70]
[30, 40, 30]
Howto files
The github repo contains tutorials written as jupyter notebooks:
Authors
- Eivind Tøstesen, contact@tostesen.no
License
Copyright (C) 2021-2024 Eivind Tøstesen. This software is licensed under GPLv3
Citation
Citation can include one or more of:
-
Peakoscope + version
-
Github URL: https://github.com/eivindtostesen/hierarchical_peak_finding
-
PyPI URL: https://pypi.org/project/peakoscope/
-
The open-access article:
Tøstesen, E. A stitch in time: Efficient computation of genomic DNA melting bubbles. Algorithms for Molecular Biology, 3, 10 (2008). DOI: 10.1186/1748-7188-3-10
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file peakoscope-0.9.0.tar.gz.
File metadata
- Download URL: peakoscope-0.9.0.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68ea829e549e861da67759d58a7ed60f0870a9f8495b28d48b8e7cd104139610
|
|
| MD5 |
8c57027002b61b3ce5cbd2a978c013bb
|
|
| BLAKE2b-256 |
53d7f7251a63767b7cabc96df0d277b02e8870862ac4fd11896635e756a3445b
|
File details
Details for the file peakoscope-0.9.0-py3-none-any.whl.
File metadata
- Download URL: peakoscope-0.9.0-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a40cc84449ac24678f9e3c0415323aeb4f0e8ad93b80f51f23c2504b0fa17666
|
|
| MD5 |
a1d257f66d9cde5e32e5a407257a706b
|
|
| BLAKE2b-256 |
d4f9165908e003863e6a2a86be7b3da4026ecaecaf22cfc8dc062d7446436fe3
|