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

fix_pos in af/fixbb #155

Open
dandaman opened this issue Jul 11, 2023 · 2 comments
Open

fix_pos in af/fixbb #155

dandaman opened this issue Jul 11, 2023 · 2 comments

Comments

@dandaman
Copy link

Dear developers,

I'm trying to use ColabDesign AF to design a sequence using the fixbb protocol fixing sites with a list of positions as follows:

model = mk_afdesign_model(protocol="fixbb")
model.prep_inputs(pdb_filename="mystruc.pdb", chain="A",fix_pos="10,14,22,31,46,48,56,58,60,77,79,81,131,133,141,143,145,153,155,157,164,166,168")
model.restart()
model.design_3stage()
seq=SeqRecord(Seq(model.get_seqs()[0]),id=f"design{i}",description="")
model.save_pdb(f"fixed/org/design{i}.{model.protocol}.pdb")

I've assumed the positions need to 0-based. Is that correct?

I must be doing something wrong as the resulting sequence differs from the input pdb protein sequence in the sites given to fix_pos?

Any hint would be greatly appreciated.

Best,
Daniel

@sokrypton
Copy link
Owner

The fix_pos uses PDB numbering (so that would be 1-index for most PDBs)

@dandaman
Copy link
Author

dandaman commented Jul 12, 2023

@sokrypton, thank you for clearing this up.

So if I use 1-based cords the above code should always result in sequence designs that are identical to the Input pdb seq sites given via fix_pos?

Or are there situations the algorithm/model will change the site anyway?

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

2 participants