Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pypi version PyPI Downloads PyPI Downloads coverage Documentation Status license

InMoose

InMoose is the Integrated Multi Omic Open Source Environment. It is a collection of tools for the analysis of omic data.

InMoose is developed and maintained by Epigene Labs.

Installation

You can install InMoose directly with:

pip install inmoose

Documentation

Documentation is hosted on readthedocs.org.

Citing

When using InMoose in research projects, please cite:

  • Colange M, Appé G, Meunier L, Weill S, Johnson WE, Nordor A, Behdenna A. (2025) Bridging the gap between R and Python in bulk transcriptomic data analysis with InMoose. Nature Scientific Reports 15;18104. https://doi.org/10.1038/s41598-025-03376-y.

Depending on the features you use, you may also cite one of the following papers:

  • Behdenna A, Colange M, Haziza J, Gema A, Appé G, Azencot CA and Nordor A. (2023) pyComBat, a Python tool for batch effects correction in high-throughput molecular data using empirical Bayes methods. BMC Bioinformatics 24;459. https://doi.org/10.1186/s12859-023-05578-5.
  • Colange M, Appé G, Meunier L, Weill S, Nordor A, Behdenna A. (2025) Differential Expression Analysis with InMoose, the Integrated Multi-Omic Open-Source Environment in Python. BMC Bioinformatics 26;160. https://doi.org/10.1186/s12859-025-06180-7.

Batch Effect Correction

InMoose provides features to correct technical biases, also called batch effects, in transcriptomic data:

  • for microarray data, InMoose supersedes pyCombat, a Python3 implementation of ComBat, one of the most widely used tool for batch effect correction on microarray data.
  • for RNASeq data, InMoose features a port to Python3 of ComBat-Seq, one of the most widely used tool for batch effect correction on RNASeq data.

To use these functions, simply import them and call them with default parameters:

from inmoose.pycombat import pycombat_norm, pycombat_seq

microarray_corrected = pycombat_norm(microarray_data, microarray_batches)
rnaseq_corrected = pycombat_seq(rnaseq_data, rnaseq_batches)
  • microarray_data, rnaseq_data: the expression matrices, containing the information about the gene expression (rows) for each sample (columns).
  • microarray_batches, rnaseq_batches: list of batch indices, describing the batch for each sample. The list of batches should contain as many elements as the number of samples in the expression matrix.

Cohort QC

InMoose provides classes CohortMetric and QCReport to help to perform quality control (QC) on cohort datasets after batch effect correction.

CohortMetric: This class handles the analysis and provides methods for performing quality control on cohort datasets.

Description The CohortMetric class performs a range of quality control analyses, including:

  • Principal Component Analysis (PCA) to assess data variation.
  • Comparison of sample distributions across different datasets or batches.
  • Quantification of the effect of batch correction.
  • Silhouette Score calculation to assess how well batches are separated.
  • Entropy calculation to evaluate the mixing of samples from different batches.

Usage Example

from inmoose.cohort_qc.cohort_metric import CohortMetric

cohort_quality_control = CohortMetric(
    clinical_df=clinical_data,
    batch_column="batch",
    data_expression_df=gene_expression_after_correction,
    data_expression_df_before=gene_expression_before_correction,
    covariates=["biopsy_site", "sample_type"]
)
cohort_quality_control.process()

QCReport: This class takes a CohortMetric argument, and generates an HTML report summarizing the QC results.

Description The QCReport class extends CohortMetric and generates a comprehensive HTML report based on the quality control analysis. It includes visualizations and summaries of PCA, batch correction, Silhouette Scores, entropy, and more.

Usage Example

from inmoose.cohort_qc.qc_report import QCReport

# Generate and save the QC report
qc_report = QCReport(cohort_quality_control)
qc_report.save_report(output_path='reports')

Differential Expression Analysis

InMoose provides features to analyse diffentially expressed genes in bulk transcriptomic data:

  • for microarray data, InMoose features a port of limma, the de facto standard tool for differential expression analysis on microarray data.
  • for RNASeq data, InMoose features a ports to Python3 of edgeR and DESeq2, two of the most widely used tools for differential expression analysis on RNASeq data.

See the dedicated sections of the documentation.

Consensus clustering

InMoose provides features to compute consensus clustering, a resampling based algorithm compatible with any clustering algorithms which class implementation is instantiated with parameter n_clusters, and possess a fit_predict method, which is invoked on data. Consensus clustering helps determining the best number of clusters to use and output confidence metrics and plots.

To use these functions, import the consensusClustering class and a clustering algorithm class:

from inmoose.consensus_clustering.consensus_clustering import consensusClustering
from sklearn.cluster import AgglomerativeClustering

CC = consensusClustering(AgglomerativeClustering)
CC.compute_consensus_clustering(numpy_ndarray)

How to contribute

Please refer to CONTRIBUTING.md to learn more about the contribution guidelines.

Metadata

Release files for inmoosepeapod 0.8.2.dev0

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

Source distribution (sdist)

Source distribution for inmoosepeapod 0.8.2.dev0
File Size Uploaded
inmoosepeapod-0.8.2.dev0.tar.gz 7.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for inmoosepeapod 0.8.2.dev0
File Interpreter ABI Platform
inmoosepeapod-0.8.2.dev0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details

Total release size: 11.7 MB

Release files / inmoosepeapod-0.8.2.dev0.tar.gz

Download URL inmoosepeapod-0.8.2.dev0.tar.gz
Size 7.3 MB
Tags Source
SHA-256 checksum
How to use checksums
faa3863c99c43493d795ffce6f3fac167e0702c36fa5a9f504d5c83bbb9e4b13
BLAKE2b-256 checksum
How to use checksums
bc493be400480ddbdcb2cf9c98f63715613fc22e07afbd3a3871bafb036ceb1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / inmoosepeapod-0.8.2.dev0-cp39-cp39-macosx_11_0_arm64.whl

Download URL inmoosepeapod-0.8.2.dev0-cp39-cp39-macosx_11_0_arm64.whl
Size 4.4 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8425933c6857c87e1085d2e8140666375ad526447af74b727d5ad094f748cafd
BLAKE2b-256 checksum
How to use checksums
b7f9ad2c07b78f54b0d34569bff0168d46e74a6bca54ac6d84e62afa7cf29a48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release history Release notifications | RSS feed

This release

0.8.2.dev0 This release

2 release files

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