A package for proccesing and aligning peaklist Mass-spectrometry imaging data from .imzml files
Project description
Package pelmesha
pelmesha (Peak Extraction Library for Mass spectrometry Enhanced by Statistical High-throughput Analysis) is a Python package that allows users to process Mass Spectrometry Imaging (MSI) data from imzml files. It provides several features, including:
- Conversion of raw imzml data to the hdf5 format (function
imzml2hdf5from modulepspectra) - Processing of mass spectra (function
Raw2procfrom modulepspectra) - Creation of peaklists from the data (functions
proc2peaklistandRaw2peaklistfrom modulepspectra) - Generation of a feature matrix from a single image's peaklist by grouping peaks (function
Pgrouping_KDfrom modulepfeats) - Generation of a feature matrix for multiple images from the peaklists of each image (function
Roi_Pgrouping_KDfrom modulepfeats)
The processing of mass spectra includes several steps:
- Data resampling — This process allows you to bring data to a uniform scale between points on the
mzand to a single scale on themz. - Alignment of spectra relative to reference peaks using the
msaligntool. It should be noted thatmsaligndoes a worse job with non-continuous and non-uniform data, so it is strongly recommended to perform a resampling process before using it. Alsomsalignis modified in this package for correct work with other steps. - Baseline correction using the pybaselines package.
- Smoothing — based on code snippets from the mMass library, which provide smoothing using the moving average, Gaussian, and Savitsky-Goley algorithms.
- Peak-picking — peaks in the spectrum are searched and filtered.
In the mass spectra in the image, there is a slight difference in the peak values, even after alignment during processing. To further analyze these spectra, it will be necessary to group the peaks based on their relative positions and create a feature matrix as a result.
The Pgrouping_KD and Roi_Pgrouping_KD functions combine the wandering peak values from signals in mass spectra into a single mz value based on their kernel density estimation. This is achieved by determining the centers around which the peak values are located.
To ensure accurate results, high-quality bandwidth selection is required. This can be done manually or automatically. The probability density is estimated using the FFTKDE function from the kdepy package, which is extremely fast and uses Fourier transforms for calculation.
Project details
Release history Release notifications | RSS feed
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 pelmesha-0.3.1.tar.gz.
File metadata
- Download URL: pelmesha-0.3.1.tar.gz
- Upload date:
- Size: 67.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b4b104e17f49bec0a73455b48e2aaad4a4e5fe4d7f4fb7c17be532e1d5a7308
|
|
| MD5 |
3306843045a746489afdf696a357ddb6
|
|
| BLAKE2b-256 |
f0feef47ed081ea61e2c18a4d4dc8a66f6142a3076d00d7846b2982b7efbdf8d
|
Provenance
The following attestation bundles were made for pelmesha-0.3.1.tar.gz:
Publisher:
publish_to_pypi.yml on Testudinata/pelmesha
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pelmesha-0.3.1.tar.gz -
Subject digest:
0b4b104e17f49bec0a73455b48e2aaad4a4e5fe4d7f4fb7c17be532e1d5a7308 - Sigstore transparency entry: 370471050
- Sigstore integration time:
-
Permalink:
Testudinata/pelmesha@46a2d074f4c7652d996f5de83ef3ebddb6983b31 -
Branch / Tag:
refs/tags/0.3.1 - Owner: https://github.com/Testudinata
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@46a2d074f4c7652d996f5de83ef3ebddb6983b31 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pelmesha-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pelmesha-0.3.1-py3-none-any.whl
- Upload date:
- Size: 62.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
767a610fbf9a9961377e9bfbc75143c66f7effa2fb0e12a40d9009c087ec0640
|
|
| MD5 |
4509c43b60866ae9ecaeac03436a5bd0
|
|
| BLAKE2b-256 |
71a2f381161ab582dcc2ca8328cd17796c77830fc6c707e7b25d80c8688d593b
|
Provenance
The following attestation bundles were made for pelmesha-0.3.1-py3-none-any.whl:
Publisher:
publish_to_pypi.yml on Testudinata/pelmesha
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pelmesha-0.3.1-py3-none-any.whl -
Subject digest:
767a610fbf9a9961377e9bfbc75143c66f7effa2fb0e12a40d9009c087ec0640 - Sigstore transparency entry: 370471084
- Sigstore integration time:
-
Permalink:
Testudinata/pelmesha@46a2d074f4c7652d996f5de83ef3ebddb6983b31 -
Branch / Tag:
refs/tags/0.3.1 - Owner: https://github.com/Testudinata
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@46a2d074f4c7652d996f5de83ef3ebddb6983b31 -
Trigger Event:
push
-
Statement type: