Skip to main content

Tools for Metabolomics Multivariate Analysis

Project description

cheMLearning library provides of high-level, user-friendly tools to perform common chemometrics analysis in untargeted metabolomics. Modelling is done using scikit-learn framework, for machine learning; while visualizations are mainly done with Plotly.

Main modules are: - unsupervised_modelling - supervised_modelling - utils

## Installation

`python pip install cheMLearning ` within a Jupyter Notebook cell

`python !pip install cheMLearning `

# Unsupervised modelling

Unsupervised class works around Principal Component Analysis, facilitating the visualization of score and loading plots. Moreover, Hierarchical Clustering Analysis can be called on the principal components and visualize a score plot where the color code is given by the clusters of the HCA.

Visualizations can be obtained without having to manipulate scores or loadings. However, if one would like to access to these outputs, they can be accessed via class modules.

## Import

`python from cheMLearning.unsupervised_modelling import unsupervised_class `

# Supervised modelling

Supervised class includes Partial Least Squares and Random Forest which can be used for either regression or classification tasks. PLS is computed with the NIPALS algorithm.

In the PLS modelling, tools to compute goodness metrics, i.e. R² and Q², VIPs, are provided. In addition to a static functions to ease feature extraction VIP for a given VIP threshold.

For RF modelling, it can be computed the distance matrix for a RF-classifier model. It allows tracking where the observations land in the forest.

Analytical tools for classifiers are also provided by facilitating a classification report.

## Import

`python from cheMLearning.unsupervised_modelling import supervised_class `

# Utils

Here, tools to create confusion matrices and ROC curves are provided. In case one is working with MetaboRank (MR) tool, a function to read MR’s output is provided.

## Import

`python from cheMLearning import utils `

Change Log

0.0.1 (09/11/2022)

  • First Release

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

cheMLearning-0.0.1.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

cheMLearning-0.0.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file cheMLearning-0.0.1.tar.gz.

File metadata

  • Download URL: cheMLearning-0.0.1.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for cheMLearning-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ea8b0d7673311cdc999b97f6d1677a13f10fd3274762f6fc4c4ce09a976b5dce
MD5 336d4f1a214ccb0794bb2b921e3da48c
BLAKE2b-256 902c9347dcd8a9867edce9d3648f795703be04aa54e3f90511a9b322ef2f1141

See more details on using hashes here.

File details

Details for the file cheMLearning-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cheMLearning-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for cheMLearning-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 308de9bdda5f95c5acda185ef5cb396f1ad30242f95c09b19f3b4258a151d4da
MD5 707c9ce55c920b216491858cd9deaf98
BLAKE2b-256 4bcae5e80df240b9545202535de1933a42eeb332a2af99324397276f72334c00

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