Repository navigation
4 Getting Help
Contact
- Johanna Galvis: johanna.grl@protonmail.com
- Benjamin Dartigues: benjamin.dartigues@u-bordeaux.fr
Problem: ModuleNotFoundError: No module named 'SpacePath'
🔹 Solution: Ensure you:
- Installed with
poetry install(not justgit clone) - Activated the environment:
conda activate spacepathorsource spacepath/bin/activate
Problem: ModuleNotFoundError: No module named 'sspa'
🔹 Solution: This dependency is installed with:
pip install sspa==1.0.4Problem: annots_obj.no_translated is empty after .load()
🔹 Solution: Check that:
- File paths are correct (relative to
data_dir+subfolder) - CSV delimiter matches your file (default is comma
,) - Required columns exist:
mz,formula,moleculeIds,moleculeNames - Column names are exact (case-sensitive)
Problem: FileNotFoundError when loading annotations
🔹 Solution: Verify your folder structure:
import os
print(os.path.exists(os.path.join(data_dir, subfolder, "your-file.csv")))Problem: annots_obj.df is empty after .convert_ids_to_kegg()
🔹 Solution:
- Ensure your annotation database (HMDB, LipidMaps) has matching entries in the reference mapping files
- Check that the mapping files contain entries for your compound IDs
Problem: ClassifyMZProtocol.run() is very slow
🔹 Solution: For large datasets (>50k spots), you can:
- Reduce permutations: e.g. set
n_perms_moran_calc=10in config - The computation automatically splits into groups for very large datasets
Problem: Multiple log files appearing in logs/ folder
🔹 Solution: This can happen with repeated imports in Jupyter notebooks. Restart your kernel to reset the logger state.
Problem: ArpackError during pathway scores computation
🔹 Solution: This occurs when input data has zero-variance columns. The library handles this automatically, but if it persists:
- Check for columns with all-zero values in your data
- Filter out low-variance features before computation
When reporting issues, please include:
- Python version (
python --version) - SpacePath version (check
pyproject.toml) - Full error traceback
- Minimal code to reproduce the issue
- Sample of your input data format (anonymized if needed)