ML-based PFAS prediction from mass spectrometry data
Project description
PFASProphet
A tool for giving a score on the likelihood of PFAS (Per- and Polyfluoroalkyl Substances) from mass spectrometry data using machine learning.
Features
- Obtain a PFAS scores from precursor masses and fragment ions.
- Support for CSV files or direct list inputs.
- can be run from python directly or Command-line interface (CLI).
- Handles ionised vs. neutral masses (negative ESI mode).
- See examples for usage.
Installation
- Clone the repository:
git clone https://github.com/yourusername/PFASProphet.git - Navigate to the directory:
cd PFASProphet - Create a virtual environment:
python -m venv .venv - Activate it:
.venv\Scripts\activate(Windows) orsource .venv/bin/activate(Linux/Mac) - Install:
pip install -e .
Usage
CLI Examples
- Predict from lists:
pfasprophet --mass "[248.9461]" --fragments "[[63.9624]]" - Predict from CSV:
pfasprophet --file data.csv - Help:
pfasprophetorpfasprophet --help
Python API
from PFASProphet import PFASProphet
prophet = PFASProphet()
result = prophet.predict(mass=[248.9461], fragments=[[63.9624]])
print(result)
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
pfasprophet-0.1.0.tar.gz
(235.7 kB
view details)
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
pfasprophet-0.1.0-py3-none-any.whl
(232.3 kB
view details)
File details
Details for the file pfasprophet-0.1.0.tar.gz.
File metadata
- Download URL: pfasprophet-0.1.0.tar.gz
- Upload date:
- Size: 235.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43eee678fc96efa9351c062e94d6a09972a2b8e79df4c25341baadd6427c4951
|
|
| MD5 |
81f567bbdad57bb64e89934044693b07
|
|
| BLAKE2b-256 |
128da664def273c33047fc44034e5c344e951340b31f67ee0d4e7651fd3e400a
|
File details
Details for the file pfasprophet-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pfasprophet-0.1.0-py3-none-any.whl
- Upload date:
- Size: 232.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdf213a92b0098a666d3516773322c21c5e4a16cc48ee287b71748a3d0ba17dc
|
|
| MD5 |
d668a0d5cc5916fd1bf33e0b49db5c99
|
|
| BLAKE2b-256 |
26a8e9b76e48f40351953d55cd355293905de98c4337a28fcfa70b6273c07d63
|