Installation Guide
U-Probe can be installed in multiple ways depending on your needs. This guide covers all installation methods from basic pip installation to creating standalone executables.
Requirements
Before installing U-Probe, ensure you have:
- Python 3.9+ (Python 3.11 recommended)
- Operating System: Linux, macOS, or Windows
- Memory: At least 4GB RAM (8GB+ recommended for large genomes)
- Storage: Sufficient space for genome files and indices
System Dependencies
U-Probe requires several bioinformatics tools to be installed on your system:
Required Tools:
Installing on Ubuntu/Debian:
sudo apt-get update
sudo apt-get install bowtie2 ncbi-blast+Installing on macOS:
brew install bowtie2 blastInstalling on Windows:
Download and install the tools manually from their respective websites, or use Windows Subsystem for Linux (WSL).
Installation Methods
Method 1: Install from PyPI (Recommended)
The easiest way to install U-Probe is using pip:
pip install uprobeThis installs U-Probe and its Python dependencies. After installation, you can use the uprobe command directly.
Method 2: Install from Source
For the latest development version or to contribute to U-Probe:
git clone https://github.com/UFISH-Team/U-Probe.git
cd u-probe
pip install .Method 3: Development Installation
If you plan to modify U-Probe or contribute to development:
git clone https://github.com/UFISH-Team/U-Probe.git
cd u-probe
pip install -e .This creates an editable installation where changes to the source code are immediately reflected.
Method 4: Conda Environment (Recommended for Bioinformatics)
For a complete bioinformatics environment:
git clone https://github.com/UFISH-Team/U-Probe.git
cd u-probe
conda env create -f environments.yaml
conda activate uprobe
pip install .Verifying Installation
After installation, verify U-Probe is working correctly:
# Check version
uprobe version
# View help
uprobe --help
# Test with a simple command
uprobe validate-targets --helpYou should see the U-Probe version and help information without errors.
Creating Standalone Executables
For deployment on systems without Python, you can create standalone executables:
Prerequisites
pip install pyinstallerBuild Process
# Basic build
pyinstaller --onefile --name uprobe \
--hidden-import uprobe \
--hidden-import uprobe.core.api \
--hidden-import uprobe.core.cli \
--hidden-import click \
--collect-all uprobe \
uprobe/__main__.py
# The executable will be created in dist/uprobeAdvanced Build with Script
Create a build script for reproducible builds:
#!/bin/bash
echo "Building U-Probe standalone executable..."
# Install dependencies
pip install -r requirements.txt
pip install pyinstaller
# Clean previous builds
rm -rf build dist uprobe.spec
# Build executable
pyinstaller --onefile --name uprobe \
--hidden-import uprobe \
--hidden-import uprobe.core.api \
--hidden-import uprobe.core.cli \
--hidden-import click \
--collect-all uprobe \
uprobe/__main__.py
echo "✅ Build complete! Executable available in dist/uprobe"
echo "File size: $(du -h dist/uprobe | cut -f1)"Save this as build.sh, make it executable (chmod +x build.sh), and run it.
Docker Installation
For containerized deployment:
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
bowtie2 \
ncbi-blast+ \
&& rm -rf /var/lib/apt/lists/*
# Install U-Probe
COPY . /app
WORKDIR /app
RUN pip install .
# Set entrypoint
ENTRYPOINT ["uprobe"]Build and run:
docker build -t uprobe .
docker run -v $(pwd)/data:/data uprobe --helpTroubleshooting Installation
Common Issues
Import Error: No module named 'uprobe'
Solution: Ensure you're in the correct environment and U-Probe is properly installed:
pip list | grep uprobe
python -c "import uprobe; print(uprobe.__version__)"Command not found: uprobe
Solution: Check if the installation directory is in your PATH:
bash
# Find where uprobe is installed
which uprobe
# If not found, try with python -m
python -m uprobe --helpMissing system dependencies
Solution: Install Bowtie2 and BLAST+ as described in the System Dependencies section.
Permission denied errors
Solution: Use --user flag for pip or use a virtual environment:
pip install --user uprobeVirtual Environment Setup
Using virtualenv:
python -m venv uprobe_env
source uprobe_env/bin/activate # On Windows: uprobe_env\Scripts\activate
pip install uprobeUsing conda:
conda create -n uprobe python=3.8
conda activate uprobe
pip install uprobeNext Steps
After successful installation:
- Read the quickstart guide for your first probe design
- Review the configuration guide to understand config files
- Explore the cli reference for all available commands
Note
If you encounter any issues during installation, please check our troubleshooting guide or open an issue on GitHub.