HUB
Sign inSign up

owusukd/bioops

By owusukd

β€’Updated over 1 year ago

Image
Web analytics
0

891

owusukd/bioops repository overview

⁠BioOps - Protein Analysis Tool

BioOps Logo

Python Streamlit Docker License: CC BY-NC 4.0

⁠🧬 Overview

BioOps is a comprehensive protein analysis platform specializing in Protein analysis. It integrates multiple state-of-the-art computational tools to provide detailed structural and electrostatic analysis of protein binding pockets.

⁠Key Features
  • 3D Structural Comparison using FATCAT algorithm
  • Binding Pocket Prediction with P2Rank
  • Pocket Similarity Analysis using APoc
  • Electrostatic Potential Calculation with APBS/PDB2PQR
  • Interactive 3D Visualization powered by py3Dmol
  • Comprehensive Results Export with detailed analysis reports

β πŸš€ Quick Start

# Pull image from dockerhub
sudo docker pull owusukd/bioops

# Run with Docker
sudo docker run -d -p 8501:8501 --name bioops owusukd/bioops:latest

# Access at http://localhost:8501

β πŸ“‹ Requirements

⁠System Requirements
  • Ubuntu 22.04+ (or compatible Linux distribution)
  • Python 3.12+
  • Java 17+ (for P2Rank)
  • 8GB RAM minimum (16GB recommended)
  • 10GB free disk space
⁠External Tools

The following tools are automatically installed by the setup script:

  • FATCAT - Flexible structure alignment
  • P2Rank - Machine learning-based pocket prediction
  • APoc - Pocket structural comparison
  • APBS - Electrostatic calculations
  • PDB2PQR - PDB file preparation for APBS
⁠Logging Configuration

BioOps uses a comprehensive logging system. Configure logging in config/logging.yaml:

version: 1
formatters:
  default:
    format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
  json:
    class: pythonjsonlogger.jsonlogger.JsonFormatter
    format: '%(asctime)s %(name)s %(levelname)s %(message)s'

handlers:
  console:
    class: logging.StreamHandler
    level: INFO
    formatter: default
    stream: ext://sys.stdout
  
  file:
    class: logging.handlers.RotatingFileHandler
    level: DEBUG
    formatter: json
    filename: logs/bioops.log
    maxBytes: 10485760  # 10MB
    backupCount: 5

loggers:
  bioops:
    level: DEBUG
    handlers: [console, file]
    propagate: false
  
  protFuncs:
    level: DEBUG
    handlers: [console, file]
    propagate: false

root:
  level: INFO
  handlers: [console, file]

β πŸ“Š Usage

⁠Input Methods
  1. PDB ID Entry

    • Enter 4-character PDB identifiers
    • Optionally specify chain IDs
    • Files are automatically downloaded from RCSB
  2. File Upload

    • Upload PDB files directly
    • Maximum file size: 50MB
    • Supported format: .pdb
⁠Analysis Workflow
  1. Select Input Method - Choose between PDB ID or file upload
  2. Provide Structures - Enter IDs or upload files for two proteins
  3. Specify Chains - Optional, defaults to chain 'A'
  4. Run Analysis - Click "Start Analysis" to begin processing
  5. View Results - Explore interactive visualizations and download reports
⁠Results Include
  • Structure Analysis Tab

    • 3D protein visualizations
    • Structural alignment results
    • Pocket overlap scores
    • APoc pocket comparison metrics
  • Electrostatic Analysis Tab

    • Similarity heatmaps
    • Hierarchical clustering dendrograms
    • Individual pocket potential visualizations
  • Summary Tab

    • Analysis statistics
    • Downloadable results (CSV, ZIP package)

β πŸ—οΈ Architecture

bioops/
β”œβ”€β”€ bioops.py              # Main Streamlit application  
β”œβ”€β”€ protFuncs.py           # Core analysis functions
β”œβ”€β”€ install_tools          # Tool installation script
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ Dockerfile            # Docker container definition
β”œβ”€β”€ docker-compose.yml    # Docker Compose configuration
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ logging.yaml      # Logging configuration
β”‚   └── analysis.yaml     # Analysis parameters
β”œβ”€β”€ logs/                 # Application logs
β”œβ”€β”€ tempDownloadDir/      # Temporary analysis files
β”‚   └── results/          # Analysis results
β”‚       β”œβ”€β”€ fatcat/       # FATCAT alignment results
β”‚       β”œβ”€β”€ p2rank/       # P2Rank pocket predictions
β”‚       β”œβ”€β”€ apoc/         # APoc comparison results
β”‚       β”œβ”€β”€ apbs/         # APBS electrostatic calculations
β”‚       └── overlap_score/ # Overlap score calculations
└── logo/                 # Application logos

β πŸ› Troubleshooting

⁠Common Issues
  1. Java Not Found

    export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
    export PATH=$JAVA_HOME/bin:$PATH
    
  2. Tool Command Not Found

    source ~/.bashrc
    # Or manually add tool paths to PATH
    
  3. Permission Denied

    sudo ...                # Make sure you have sudo privilege
    chmod +x install_tools
    chmod +x tools/*/bin/*
    
  4. Memory Issues

    • Increase Docker memory allocation
    • Reduce number of concurrent analyses
    • Process smaller proteins
⁠Log Files

Check logs for detailed error information:

  • Application logs: logs/*.log

⁠🀝 Contributing

We welcome contributions! Please me for guidelines.

⁠Development Setup
# Clone the repository
git clone https://github.com/owusukd/bioops.git
cd bioops

# Create development environment
python -m venv venv-dev
source venv-dev/bin/activate

# Install development dependencies
pip install -r requirements-dev.txt

# Run tests
pytest tests/

# Run linting
flake8 bioops.py protFuncs.py
black --check bioops.py protFuncs.py

β πŸ“„ License

BioOps is licensed for academic use under CC BY-NC 4.0⁠. For commercial use, contact [email protected]⁠.

β πŸ™ Acknowledgments

BioOps integrates the following tools:

β πŸ“§ Contact

β πŸ—ΊοΈ Roadmap

  • Support for AlphaFold structures
  • Batch processing capabilities
  • REST API implementation
  • Machine learning-based pocket classification
  • Integration with molecular dynamics simulations
  • Support for protein-protein interaction analysis

Made with ❀️ for the bioinformatics community
Tag summary
Recent tags
Content type
Image
Digest
sha256:5a1824235…
Size
1 GB
Last updated
over 1 year ago
docker pull owusukd/bioops:latest