Installation¶
This guide will help you install ROBIN and its dependencies from source.
For original robin (currently at https://github.com/LooseLab/robin) - please jump to Original Robin.
For ROBIN with added Little John (currently at https://github.com/LooseLab/littlejohn) - please jump to Robin & Little John.
Robin & Little John¶
Prerequisites¶
- Conda (recommended for environment management)
- Git
- Git LFS
- Python 3.9+
- Docker (optional; used by some third-party tools)
Step 1: Clone the Repository¶
Clone the repository with submodules:
If you already cloned without submodules, run:
Step 2: Set Up the Environment¶
Create and activate the conda environment:
- For Linux/Windows:
- For macOS:
Step 3: Install ROBIN¶
Install in development mode:
Step 4: Download Required Model Assets¶
Use the helper scripts to fetch models:
# Download all models automatically
python setup_models.py
# Or download individual models
python scripts/fetch_asset.py general_model src/robin/models/general.zip
python scripts/fetch_asset.py capper_model src/robin/models/Capper_et_al_NN.pkl
python scripts/fetch_asset.py pancan_model src/robin/models/pancan_devel_v5i_NN.pkl
Authentication (if required)¶
For private repositories, set your GitHub token:
Asset Verification¶
All assets are automatically verified using SHA256 checksums. If verification fails, the download will be retried or the corrupted file will be removed.
Original Robin¶
Prerequisites¶
- Docker (required for running third-party tools in containers)
- Python 3.8 or higher
- Git
- Git LFS
- Conda (recommended for environment management)
Step 1: Clone the Repository¶
First, clone the ROBIN repository and initialize required components:
git clone https://github.com/LooseLab/robin.git
cd robin
git lfs install
git lfs pull
git submodule update --init --recursive
Step 2: Set Up the Environment¶
Create and activate the conda environment:
- For Linux:
- For macOS:
Activate the environment:
Step 3: Additional macOS Setup¶
If you are on macOS, you will need to install the GenomicRanges R package. Launch R and run:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("GenomicRanges")
Step 4: Install ROBIN¶
Install the ROBIN Python package in editable mode (recommended for development and updates):
Dependencies¶
ROBIN's dependencies (Python, R, and third-party tools) are managed by the conda environment files (robin.yml or robin_osx.yml). See these files for the full list.
Verification¶
To verify your installation, run:
Troubleshooting¶
Common Issues¶
-
Docker Requirements:
Ensure Docker is installed and running on your system.
Verify Docker has sufficient permissions to run containers. -
Git LFS Issues:
If you encounter issues with large files, ensure Git LFS is properly installed and initialized.
Rungit lfs installif you haven't already. -
Permission Errors:
If you encounter permission errors during installation, ensure you have appropriate permissions for Docker and the installation directory. -
macOS Specific Issues:
If you encounter issues with R packages on macOS, ensure you've installed GenomicRanges as described above.
MinKNOW API Version Mismatch¶
If you encounter an error such as:
This usually means there is a mismatch between the version of the minknow_api Python package and the version of MinKNOW installed on your system. ROBIN requires that the minknow_api version matches the MinKNOW version running on your GridION or other device.
Solution: Check your MinKNOW version.
Install the matching version of the minknow_api Python package. For example, if you are running MinKNOW 6.2.x, install the corresponding API version:
You can find more information and available versions at the nanoporetech/minknow_api GitHub repository.
For more details, see the discussion in ROBIN issue #121.
Next Steps¶
- Proceed to the Quick Start Guide to begin using ROBIN.
- Return to the Home page.