feat: added ESM-2 preprocessing pipeline#49
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a comprehensive ESM-2 preprocessing pipeline for generating protein embeddings from FASTA files. The implementation replaces shell-based dependencies (wget/gunzip) with pure Python modules and provides a complete workflow for downloading, processing, and converting protein sequences to gene-level embeddings.
Key changes:
- Complete preprocessing pipeline with ESM-2 model integration for protein embedding generation
- Python-based file downloading and decompression replacing shell dependencies
- Support for 20+ species with extensible configuration through JSON manifest
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| preprocess/requirements.txt | Dependencies for ESM-2 preprocessing pipeline |
| preprocess/protein_embedding.py | Main script for generating protein embeddings using ESM-2 models |
| preprocess/get_stable_id_mapping.py | Utility functions for mapping gene/protein/transcript stable IDs |
| preprocess/fasta_manifest_pep.json | Configuration manifest with Ensembl download URLs for supported species |
| preprocess/README.md | Comprehensive documentation for the preprocessing pipeline |
| README.md | Updated main README with protein embedding availability table and preprocessing instructions |
Comments suppressed due to low confidence (2)
preprocess/requirements.txt:4
- The biopython dependency is missing a version specification. Consider pinning to a specific version for reproducibility, e.g., 'biopython==1.81'.
biopython
preprocess/requirements.txt:5
- The h5py dependency is missing a version specification. Consider pinning to a specific version for reproducibility, e.g., 'h5py==3.9.0'.
h5py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #45
Changes
Testing