Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with Converting Protein Sequence to Input Data for ESM_S Model #2

Open
deardeer7 opened this issue Mar 16, 2024 · 0 comments
Open

Comments

@deardeer7
Copy link

Hello,

I'm new to the whole torchdrug pipeline thing. I was checking out the README and saw this part about "Load Trained Model Weight." After loading the weights, how do I go about turning a protein sequence into the input data, feed it into the esm_s model, and then grab the output embeddings? I reviewed the code, and there's this ESM class with a forward function that looks like forward(self, graph, input,..). Can you help me figure out how to put together the graph and input from a protein sequence? Any tips or pointers would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant