Contributing to DGL-LifeSci
Relevant source files
The following files were used as context for generating this wiki page:
DGL-LifeSci is a DGL-based package designed for various applications in life science using Graph Neural Networks (GNNs). The project welcomes community contributions including bug reports, new features, documentation improvements, and bug fixes to enhance its collection of methods for graph construction, featurization, and pre-trained models. Sources: README.md:9-16, CONTRIBUTING.md:1-4
The contribution process is governed by specific guidelines to ensure code quality and project alignment. All contributions must go through pull requests and undergo code review before being merged into the codebase. Sources: CONTRIBUTORS.md:4-6, CONTRIBUTING.md:20-22
Contribution Workflow
The project follows a standard GitHub-based contribution workflow involving issue tracking and pull requests. Contributors are encouraged to check existing issues and pull requests to avoid duplicated efforts. Sources: CONTRIBUTING.md:9-12, CONTRIBUTING.md:25-27
Pull Request Process
- Fork and Sync: Fork the repository and ensure you are working against the latest source on the
masterbranch. Sources: CONTRIBUTING.md:24, CONTRIBUTING.md:31 - Discussion: For significant work, contributors must open an issue first to discuss the proposed changes. Sources: CONTRIBUTING.md:28-29
- Implementation: Modify the source focusing on specific changes. Avoid mass reformatting as it complicates the review process. Sources: CONTRIBUTING.md:32-34
- Verification: Ensure all local tests pass and check for automated CI failures after submission. Sources: CONTRIBUTING.md:35, CONTRIBUTING.md:38
The following diagram illustrates the lifecycle of a contribution from identification to merging:
Sources: CONTRIBUTING.md:20-40
Standards and Compliance
Contributors must adhere to project-specific standards regarding conduct, security, and licensing.
Code of Conduct
DGL-LifeSci adopts the Amazon Open Source Code of Conduct. This standard ensures a collaborative and respectful environment for all participants. Sources: CODE_OF_CONDUCT.md:1-5, CONTRIBUTING.md:47-51
Security and Licensing
- Security: Potential security vulnerabilities should not be reported via public GitHub issues. Instead, they must be notified via the AWS vulnerability reporting page. Sources: CONTRIBUTING.md:54-56
- Licensing: Contributions are subject to the project's license. For larger changes, contributors may be required to sign a Contributor License Agreement (CLA). Sources: CONTRIBUTING.md:59-64
Technical Contributions
The project structure allows for contributions across several layers of the GNN-LifeSci stack.
Development Areas
| Area | Description | Relevant Utilities |
|---|---|---|
| Data Analysis | Tools for analyzing collections of molecules and filtering invalid SMILES. | analyze_mols, summarize_a_mol |
| Featurization | Implementing new atom or bond featurizers for molecular graphs. | CanonicalAtomFeaturizer, CanonicalBondFeaturizer |
| Model Zoo | Contributing new model architectures for property prediction or generation. | GCNPredictor, DGMG, JTNN |
| Datasets | Adding support for new life science datasets or benchmarks. | MoleculeCSVDataset, Tox21, ESOL |
Sources: README.md:14-16, examples/README.md:3-80, python/dgllife/utils/analysis.py:90-110
Molecular Analysis Utility
A common area for contribution is the expansion of molecular descriptors. The analyze_mols utility in python/dgllife/utils/analysis.py demonstrates how the project handles data validation and property summarization.
The summarize_a_mol function extracts technical features such as:
- Atom Descriptors: Atom type, degree, valence (explicit/implicit), hybridization, formal charge, and aromaticity. Sources: python/dgllife/utils/analysis.py:30-58
- Bond Descriptors: Bond type, conjugation, stereo configuration, and bond direction. Sources: python/dgllife/utils/analysis.py:60-65
Community and Support
Contributors can engage with the project through multiple channels:
- GitHub Issue Tracker: Primary location for bug reports and feature requests using labels like
help wantedorenhancement. Sources: CONTRIBUTING.md:9, CONTRIBUTING.md:43-44 - Discussion Forum: Hosted at discuss.dgl.ai. Sources: README.md:3
- Slack: Real-time discussion channel (requires contact with maintainers for access). Sources: README.md:5
A full list of past community contributors and their specific modules (e.g., Alchemy dataset, MPNN, SchNet) is maintained in CONTRIBUTORS.md. Sources: CONTRIBUTORS.md:10-17