A comprehensive metabolite extraction and analysis tool, migrated from Python 2.7 to Python 3 with modern dependency management using UV.
Please install uv. For instruction see https://docs.astral.sh/uv/getting-started/installation/
# Clone the repository
git clone https://github.com/chrboku/MetExtract-II
cd MetExtract-IIuv syncuv run python -m src.MExtract# Main application (MExtract) - Primary metabolite extraction interface
uv run python -m src.MExtract
# MetExtract II Main Interface - Alternative main interface
uv run python -m src.MetExtractII_Main- MExtract: The primary GUI application for metabolite extraction and analysis
- MetExtractII_Main: Main interface for MetExtract II functionality
- FragExtract: Specialized tool for extracting and analyzing mass spectrometry fragments
- FTICRModule: Module for handling Fourier Transform Ion Cyclotron Resonance mass spectrometry data
# Format code with Black
uvx ruff formatThis version has been migrated from Python 2.7 (published version) to Python 3.11+ with the following major changes:
- Python 3 Compatibility: All Python 2.7 syntax updated to Python 3
- PyQt4 → PyQt5: GUI framework updated for modern compatibility
- Print Statements: All
printstatements converted toprint()function calls - Dictionary Methods:
.has_key()replaced withinoperator,.iteritems()with.items() - String Handling: Unicode handling updated for Python 3
- Integer Division: Updated
/to//where floor division intended - Exception Handling: Modern
except Exception as e:syntax - Import System: Relative imports updated to absolute imports where needed
- UV Package Management: Modern, fast dependency resolution and virtual environment management
- Type Hints: Gradual addition of type annotations
- Modern Setup: Uses
pyproject.tomlinstead ofsetup.py - Code Quality: Black formatting and linting support