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

Allow initialization from topology, positions, and sequence. #263

Closed

Conversation

jonathanking
Copy link
Contributor

This allows the user to fix an object/protein structure already loaded by OpenMM. I have used this in my research so I can fix an already parsed protein structure instead of saving it to a PDB file and reloading it with pdbfixer.

This PR and the one before it, #262, are my first contributions. Please let me know if there is anything I can change, or if there is anything I have misunderstood. These modifications have been useful in my work, and I thought I might share them here as well.

This allows the user to fix an object already loaded by OpenMM
rather than requiring them to save to PDB first.
@peastman
Copy link
Member

I've been thinking about this, trying to decide whether it's the right approach. It would help if you could describe your use case a bit more. For example, you provide two different ways of specifying the sequence: by one letter or three letter codes. Are both really needed? On the other hand, they only support a single chain. You really need a separate sequence for each chain.

And then, is specifying the sequence really the best approach? It requires logic to align the sequence with the residues, and that isn't always completely reliable. When reading a file we need to do it, because that's what the file contains. But if you're calling it programmatically and you already know what residues you want to add, would it be better to skip the sequence matching step and just have the user set missingResidues directly?

@peastman peastman closed this Oct 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants