Installation¶
This guide covers different ways to install LZGraphs and verify your installation.
Requirements¶
- Python: 3.9 or higher
- Operating System: Windows, macOS, or Linux
- Dependencies: Automatically installed (see below)
Install from PyPI¶
The recommended way to install LZGraphs is via pip:
This will install LZGraphs along with all required dependencies.
Install from Source¶
For the latest development version:
Development Installation¶
If you want to contribute or run tests:
This includes additional tools for testing and code quality.
Dependencies¶
LZGraphs automatically installs these core dependencies:
| Package | Version | Purpose |
|---|---|---|
numpy |
≥1.20 | Numerical operations |
Verify Installation¶
After installation, verify everything works:
You should see the version number printed without errors.
Quick Test¶
Run a minimal example to ensure all components work:
from LZGraphs import LZGraph
# Create minimal test data
sequences = ['CASSLEPSGGTDTQYF', 'CASSDTSGGTDTQYF']
# Build a graph
graph = LZGraph(sequences, variant='aap')
print(f"Graph has {graph.n_nodes} nodes and {graph.n_edges} edges")
Troubleshooting¶
Import Errors¶
If you see ModuleNotFoundError:
- Ensure you're using the correct Python environment
- Try reinstalling:
pip install --force-reinstall LZGraphs
Version Conflicts¶
If you have dependency conflicts:
Or create a fresh virtual environment:
python -m venv lzgraphs_env
source lzgraphs_env/bin/activate # On Windows: lzgraphs_env\Scripts\activate
pip install LZGraphs
Still Having Issues?¶
- Check the FAQ for common problems
- Open an issue on GitHub
Next Steps¶
With LZGraphs installed, proceed to the Quick Start guide to build your first graph.