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

Build a peptide from a starting residue #42

Open
brianjimenez opened this issue Jul 8, 2020 · 10 comments
Open

Build a peptide from a starting residue #42

brianjimenez opened this issue Jul 8, 2020 · 10 comments

Comments

@brianjimenez
Copy link

Hi,

First of all, congratulations on this nice piece of software. I would like to know if it's possible to use PeptideBuilder to build a peptide starting from a PDB file which contains a single residue and use its atom coordinates in the process.

Thank you in advance for your time and help!

@mtien
Copy link
Collaborator

mtien commented Jul 8, 2020

Hi,

Can you clarify the statement "and use its atom coordinates in the process"?

@brianjimenez
Copy link
Author

Sure, I mean using the only residue from the PDB file as an anchor and build the rest of the peptide given a sequence.

@mtien
Copy link
Collaborator

mtien commented Jul 8, 2020

PeptideBuilder cannot modify an existing PDB file. If the peptide anchor coordinates in (x,y,z) space is important for your purposes, you can investigate the method "def initialize_res(residue: Union[Geo, str]) -> Structure." An override of this method will allow you to specify the (x,y,z) coordinates of your anchor residue instead of how it is currently written to start at (0,0,0). You will be able to take your PDB file and create a new PDB that can build peptides of your given sequence.

I hope I am understanding your question correctly?

@brianjimenez
Copy link
Author

Amazing, that is basically what I needed :)
Thanks a lot for your quick and useful answer!

@clauswilke
Copy link
Owner

PeptideBuilder cannot modify an existing PDB file.

Matthew, is this fully true? If I understand correctly how PeptideBuilder works, it appends residues to the end of chain A model 0 of a biopython structure object. Shouldn't it be possible to read a PDB file that has only a single chain, A, (containing one or more residues) and then append to that chain?

@mtien
Copy link
Collaborator

mtien commented Jul 8, 2020

Claus, you are correct, in that this is not "fully true". From the tester scripts we have provided, one can "read" the geometries of a PDB file (lets call it "A.pdb") and then start the construction of a biopython structure object. This will not modify the original read A.pdb file, but will create an object that can be used to append residues to their specified anchor during the reading. The created object during reading and construction will anchor the first read residue at (0,0,0). If the user wants to retain the (x,y,z) coordinates of A.pdb, then that will take a more sophisticated approach to the "initialize_res" method. However, if the user is ok with this nuance, they in essence can modify an existing A.pdb, and should write the modified biopython PDB as "A_modified.pdb" for instance.

@clauswilke
Copy link
Owner

Ah, I see.

@brianjimenez There's also always the option of first constructing the peptide you need anchored at (0, 0) and then using the PDB module of biopython to translate/rotate the peptide in space to where you need it.

@brianjimenez
Copy link
Author

Thanks a lot for the answers and discussion. @clauswilke , we plan to use PeptideBuilder starting from an anchor residue which has been predicted to be in a specific binding position with a receptor protein molecule (kind of threading, but in complex context). For that reason the approach of building and after superimposing won't be good enough.

@Verakhs

This comment has been minimized.

@mtien

This comment has been minimized.

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

4 participants