Contributing#
We welcome contributions to protdata! This guide will help you get started with contributing to the project.
Getting Started#
Fork the repository on GitHub
Clone your fork locally:
git clone https://github.com/yourusername/protdata.git
cd protdata
Create a development environment:
pip install -e ".[dev,docs]"
Development Workflow#
Make your changes
Run the tests:
pytest tests/
Code Style#
Follow PEP 8 style guidelines
Use type hints where appropriate
Add docstrings to all public functions
Use numpy-style docstrings
Documentation#
Update docstrings for any changed functions
Update tutorials if adding new features
Build docs locally to check formatting:
cd docs
make html
Adding New Loaders#
When adding support for a new proteomics tool:
Create a new loader function in
protdata/io/
Follow the existing pattern: - Return an AnnData object - Use consistent variable naming (X, obs, var, uns, layers) - Add proper error handling - Include comprehensive docstrings
Add the loader to
protdata/io/__init__.py
Write comprehensive tests
Add tutorial documentation
Update the API reference
Contact#
GitHub Issues: GitHub Issues
Code of Conduct#
This project follows the standard open-source code of conduct. Be respectful and inclusive in all interactions.