Skip to main content

ML-based PFAS prediction from mass spectrometry data

Project description

PFASProphet

License: MIT Python 3.12+

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

  1. Clone the repository: git clone https://github.com/yourusername/PFASProphet.git
  2. Navigate to the directory: cd PFASProphet
  3. Create a virtual environment: python -m venv .venv
  4. Activate it: .venv\Scripts\activate (Windows) or source .venv/bin/activate (Linux/Mac)
  5. 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: pfasprophet or pfasprophet --help

Python API

from PFASProphet import PFASProphet

prophet = PFASProphet()
result = prophet.predict(mass=[248.9461], fragments=[[63.9624]])
print(result)

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

pfasprophet-0.1.0.tar.gz (235.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pfasprophet-0.1.0-py3-none-any.whl (232.3 kB view details)

Uploaded Python 3

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

Hashes for pfasprophet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43eee678fc96efa9351c062e94d6a09972a2b8e79df4c25341baadd6427c4951
MD5 81f567bbdad57bb64e89934044693b07
BLAKE2b-256 128da664def273c33047fc44034e5c344e951340b31f67ee0d4e7651fd3e400a

See more details on using hashes here.

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

Hashes for pfasprophet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdf213a92b0098a666d3516773322c21c5e4a16cc48ee287b71748a3d0ba17dc
MD5 d668a0d5cc5916fd1bf33e0b49db5c99
BLAKE2b-256 26a8e9b76e48f40351953d55cd355293905de98c4337a28fcfa70b6273c07d63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page