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

Use sdf/molfile instead of pdb #25

Open
VittorioRainaldi opened this issue Sep 8, 2024 · 2 comments
Open

Use sdf/molfile instead of pdb #25

VittorioRainaldi opened this issue Sep 8, 2024 · 2 comments

Comments

@VittorioRainaldi
Copy link

Hi,

is it possible to do diffusion using a small molecule ligand that is not part of a pdb?
For example an sdf file downloaded directly from pubchem or even generated in a molecular editor software such as avogadro.
I tried converting sdf into pdb but I get an error when the parse_pdb function does not find a sequence in the input pdb.

idx_sm = torch.arange(max(idx_prot),max(idx_prot)+Ls[1])+200
ValueError: max() arg is an empty sequence

As far as I understand the diffusion process is not using the protein sequence at all, so it should be possible to take an isolated ligand as input but I couldn't find a way to do it.

As a side note it would be nice to have some more comments in this code, otherwise it's really hard to figure out what's what.

Best,
Vittorio

@samholtzen
Copy link

I'm currently having a similar issue. Has anyone solved this?

@VittorioRainaldi
Copy link
Author

Hi, I was able to run the code with a simple but ugly hack which is taking my ligand and adding it into a random pdb of an enzyme without a ligand. I didn't delve super deep into the code but from what I can tell it's set up to simply discard anything that is not the ligand 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