Skip to main content

Rodin: Metabolomics Data Analysis Toolkit

DOI PyPI Monthly installs All-time installs

Rodin is a Python library specifically designed for the comprehensive processing and analysis of metabolomics data and other omics data. It is a class-methods based toolkit, facilitating a range of tasks from basic data manipulation to advanced statistical evaluations, visualization, and metabolic pathway analysis.

📘 Documentation: https://minasenko.com/rodin

Now, most of its functionality is available in the Web App at https://rodin-meta.com.

Features

  • Efficient Data Handling: Streamlined manipulation and transformation of metabolomics data and other omics.
  • Robust Statistical Analysis: Includes ANOVA, t-tests, and more.
  • Machine Learning Methods: Random Forest, Logistic and Linear regressions.
  • Advanced Dimensionality Reduction: Techniques like PCA, t-SNE, UMAP.
  • Interactive Data Visualization: Tools for effective data visualization.
  • Pathway Analysis: Features for metabolic pathway analysis.

Installation

We recommend installing Rodin in a separate environment for effective dependency management.

Prerequisites

  • Python (3.10 or higher)

Install Rodin

pip install rodin

or install Rodin directly from GitHub:

pip install git+https://github.com/BM-Boris/rodin.git

Basic Example

Here's a basic example demonstrating the usage of Rodin for data analysis. Comprehensive Jupyter notebook guides can be found in the 'guides' folder

import rodin

# Assume 'features.csv' and 'class_labels.csv' are your datasets
features_path = 'path/to/features.csv'
classes_path = 'path/to/class_labels.csv'

# Creating an instance of Rodin_Class
rodin_instance = rodin.create(features_path, classes_path)

# Transform the data (imputation, normalization, and log-transformation steps)
rodin_instance.transform()

# Run t-test comparing two groups based on 'age'
rodin_instance.ttest('age')

# Run two-way anova test comparing groups based on 'age' and 'region'
rodin_instance.twoway_anova(['age','region'])

# Run multiple logistic regressions and linear regressions to get pvalues for each feature
rodin_instance.sf_lg('sex')
rodin_instance.sf_lr('age')

#Run a random forest classifier and regressor to obtain the metrics of the trained model using k-fold validation, with assigned feature importance scores to each variable
rodin_instance.rf_class('region')
rodin_instance.rf_regress('age')

#Slice the whole object using the pattern from pandas
rodin_instance = rodin_instance[rodin_instance.features[rodin_instance.features['imp(rf) age']>0]]

# Perform PCA with 2 principal components (UMAP and t-SNE are available as well)
rodin_instance.run_pca(n_components=2)

# Plotting the PCA results
# 'region' column in the 'samples' DataFrame is used for coloring the points
rodin_instance.plot(dr_name='pca', hue='region', title='PCA Plot')
# Volcano Plot
rodin_instance.volcano(p='p_adj(owa) region', effect_size='lfc (New York vs Georgia)', sign_line=0.01)
# Box Plot
rodin_instance.boxplot(rows=[9999,4561], hue='region')
# Clustergram 
rodin_instance.clustergram(hue='sex',standardize='row')

# Pathway analysis 
rodin_instance.analyze_pathways(pvals='p_value', stats='statistic',mode='positive')
# Replace 'p_value' and 'statistic' with the actual column names in your 'features' DataFrame(rodin_instance.features) and provide Mass spectrometry analysis mode.

The updated guide can be accessed here: https://bm-boris.github.io/rodin_guide/basics.html. Test data from the guide can be found at https://github.com/BM-Boris/rodin_guide/tree/main/data.

Contact

For questions, suggestions, or feedback, please contact boris.minasenko@emory.edu

Citation

If you use Rodin in your research, please cite the following paper:

Minasenko B, Wang D, Cirillo P, Krigbaum N, Cohn B, Jones DP, Collins JM, Hu X.
Rodin: a streamlined metabolomics data analysis and visualization tool. Bioinformatics Advances. 2025; 5(1): vbaf088.
https://doi.org/10.1093/bioadv/vbaf088

Metadata

Release files for rodin 1.9.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rodin 1.9.28
File Size Uploaded Provenance Actions
rodin-1.9.28.tar.gz 2.1 MB Without provenance Details for rodin-1.9.28.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rodin 1.9.28
File Interpreter ABI Platform Actions
rodin-1.9.28-py3-none-any.whl Python 3 none any Details for rodin-1.9.28-py3-none-any.whl

Total release size: 4.3 MB

Release files / rodin-1.9.28.tar.gz

Download URL rodin-1.9.28.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
dba95f95f23fe5fe00227f2991f1a67d9039e97f1cfcb63b267de8a57a9b896e
BLAKE2b-256 checksum
How to use checksums
7db61d1718cf87d917bff318d7fe37decbb99ca755991bab9581d837ee753ecb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release files / rodin-1.9.28-py3-none-any.whl

Download URL rodin-1.9.28-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
40ec3340e6d781b5102ed9f05da58b88889b1b363e0a79d735a076349ea2226f
BLAKE2b-256 checksum
How to use checksums
6c114d330f4391543d9afd8a45a571d1d020159a867288c1c96ebc8934607ba9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Security for rodin 1.9.28

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page