Installation¶
renalprog is a heavy package. Installation requires about 4.5 GB of disk space and a stable internet connection.
Prerequisites¶
- Python 3.9 or higher
- R 4.0+ (for enrichment analysis) - Can be installed via conda/mamba (recommended)
- Conda or Mamba (recommended for environment management)
- CUDA-capable GPU (optional, for faster VAE training)
Recommended: Using Mamba/Conda + uv¶
Quick Setup with environment.yml (Easiest)¶
# Clone repository
git clone https://github.com/gprolcastelo/renalprog.git
cd renalprog
# Create environment from file (includes Python, R, and all dependencies)
mamba env create -f environment.yml
mamba activate renalprog
# Install the package in editable mode
pip install -e .
Manual Setup¶
# Clone repository
git clone https://github.com/gprolcastelo/renalprog.git
cd renalprog
# Create environment with Python 3.9 AND R
mamba create -n renalprog "python==3.9" "r-base>=4.0"
mamba activate renalprog
# Install R packages via conda (recommended for reproducibility)
mamba install -c conda-forge r-gprofiler2 r-ggplot2 r-optparse
# Install uv for faster Python package management
pip install uv
# Install Python package
uv pip install -e .
# Install testing dependencies
uv pip install pytest pytest-cov
Note: Installing R via conda/mamba ensures all dependencies are managed in the same environment, improving reproducibility.
Alternative: Using pip + venv¶
git clone https://github.com/gprolcastelo/renalprog.git
cd renalprog
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e .
With Development Dependencies¶
R Dependencies for Enrichment Analysis¶
The package includes R scripts for gene enrichment analysis. You can install R dependencies in several ways:
Option 1: Via Conda/Mamba (Recommended)¶
If using conda/mamba environment:
# Activate your environment
mamba activate renalprog
# Install R and packages (if not done during initial setup)
mamba install -c conda-forge r-base r-gprofiler2 r-ggplot2 r-optparse
Option 2: Via R's install.packages()¶
If you already have R installed system-wide or prefer CRAN:
On Windows PowerShell:
Required R packages: - r-gprofiler2 / gprofiler2 - Gene enrichment via g:Profiler API - r-ggplot2 / ggplot2 - Visualization - r-optparse / optparse - Command-line parsing
GSEA Installation (Required for Step 6)¶
For dynamic enrichment analysis, you need to install GSEA:
- Download from: https://www.gsea-msigdb.org/gsea/index.jsp
- Extract to project root (creates
GSEA_4.3.2/directory) - See GSEA Installation Guide for detailed instructions