Skip to main content

Set of functionalities to assess molecular property prediction models.

Project description

Maturity level-0

Mosses - Model Assessment Toolkit

Description

Mosses is a library that provides a set of functionalities to assess molecular property prediction models, e.g., QSAR/QSPR models. The library currently includes:

  • A model validation module (predictive_validity.py) built on top of the concept of predictive validity described by Scannell et al. Nat Rev Drug Discov. 2022;21(12):915-931. doi:10.1038/s41573-022-00552-x. The function predictive_validity.evaluate_pv() allows the analysis of the quality of predictions on a given data set (e.g., a prospective test set of compounds), according to a desired threshold. The analysis can be used to determine whether the model used to generate the predictions is suitable for the data of interest (e.g., the validation can be done on a new series of compounds), and if so, to configure optimal thresholds for maximising enrichment of compounds with the desired property.
  • A heatmap module (heatmap.py) which summarises the information from the validation using predictive validity. The heatmap shows in one table, for each series in the data and according to the selected experimental threshold (SET), what the PPV and FOR percentages are, the recommended thresholds and resulting optimised PPV and FOR percentages, as well as, a qualitative label indicating whether the model is Good, Medium, or Bad at predicting against the data in the series.

Software requirements

The library is written in Python and requires a version >= 3.10 for runtime. The dependencies required by the library are defined in pyproject.toml and are automatically installed when installing the library.

How to install mosses

You can install the library using pip install mosses, or you can clone this repository then run make build && make install.

Examples of usage

Jupyter notebooks with examples can be found in the folder examples. We recommend following those to adapt your data, configs, and code to work with the modules in mosses.

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

mosses-0.2.12.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

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

mosses-0.2.12-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file mosses-0.2.12.tar.gz.

File metadata

  • Download URL: mosses-0.2.12.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for mosses-0.2.12.tar.gz
Algorithm Hash digest
SHA256 e9a98b0f48e0060ee4bf14418574a17ee3fec5a42ebc33fb89f03ab405056afb
MD5 468d2150e7d09d6d6e3e7071d32cfb2b
BLAKE2b-256 f2775490da9bd90c5bb57e7c1f168fe3539985851fa591947a3889ed3ba6396b

See more details on using hashes here.

File details

Details for the file mosses-0.2.12-py3-none-any.whl.

File metadata

  • Download URL: mosses-0.2.12-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for mosses-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 50c2874a08b9afbe76ebd297b62909153d9c14e8617b1fb44067c4bc3ef4b92b
MD5 8dbc9bdb1f4faa62f0be51632860781e
BLAKE2b-256 49996799fa01d4f6ec0411288dfae00c7773bec0ddf7fc14c8a281fc74a45513

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