Thanks for your interest in contributing to sequence-foundation-model-tools!
git clone https://github.com/jsdearbo/sequence_to_function_model_tools.git
cd sequence_to_function_model_tools
pip install -e ".[dev]"pytest tests/ -vTests are designed to run without GPU, genome files, or optional dependencies (gReLU, pysam, pyranges). Core module tests use only numpy, pandas, and torch.
seq_tools/ Sequence encoding, intervals, FASTA, labels, variants
training/ Losses, heads, dataset, LoRA fine-tuning
interpret/ Attribution, ISM, TF-MoDISco (requires gReLU)
tests/ Unit tests (pytest)
examples/ Jupyter notebooks demonstrating usage
- Tests: Add tests for new functionality in
tests/. Follow existing naming (test_<module>.py). - Dependencies: Keep core modules free of optional dependencies. Use
try/exceptimport guards for gReLU, pysam, and pyranges. - Style: Follow existing code style. Type hints for public function signatures.
- Notebooks: Example notebooks in
examples/should work with synthetic data (no external files).
- Add the source file to the appropriate package (
seq_tools/,training/, orinterpret/) - Add exports to the package
__init__.py - Write tests in
tests/test_<module>.py - Update
README.mdif the module adds a new capability
Open a GitHub issue with:
- What you expected vs what happened
- Minimal code to reproduce
- Python/PyTorch version info