MolecularNodes icon indicating copy to clipboard operation
MolecularNodes copied to clipboard

PDB without 4-character code

Open Alexsg14 opened this issue 2 years ago • 12 comments

I'm trying to load a PDB from a MD simulation from a folder. It has no 4-character code and all the times i tried to, it failed.

Is there a way to load a "custom" pdb or only from PDBDatabank?

image

Thank you!

Alexsg14 avatar May 17 '22 11:05 Alexsg14

Yep, use the "local file" option, click the small folder icon to find the file or paste in the file path in the "PDB file" field, then click the "open" button, optionally inputting a name for the molecule.

BradyAJohnston avatar May 17 '22 11:05 BradyAJohnston

It works if I use an atomistic PDB but for my Coarse Grained doesn't, at least for big membrane systems. For small peptides like LL-37 in CG worked too.

Alexsg14 avatar May 17 '22 12:05 Alexsg14

Are you able to share an example file so I can debug? It's likely there a bunch of custom PDB files out there that will break the import, but I should hopefully be able to support it in a future release.

BradyAJohnston avatar May 17 '22 12:05 BradyAJohnston

I am also adding support for MD trajectories via the python package MDAnalysis in the next release, so any formats that can be parsed by that should be able to be opened as well.

BradyAJohnston avatar May 17 '22 12:05 BradyAJohnston

Yeah, I attached here the PDB. I have to send it to you by link because git hub does not suppport the file: https://nubeusc-my.sharepoint.com/:u:/g/personal/alejandro_seco_rai_usc_es/EZcCuAtZLV9AoWCl4lEalYsBK8htk3hsRBnhNpnAi6U1Og?e=1wkb1a

Alexsg14 avatar May 21 '22 18:05 Alexsg14

I seem to be able to open that file without any problems. Is this a multi-frame file?

I am using the development version, so it may be that I have changed something that has improved the ability to import.

Currently MolecularNodes is unable to process all of the non-standard names for atoms etc, but I have an idea of how to support this going forward better.

image

BradyAJohnston avatar May 22 '22 01:05 BradyAJohnston

Oh! It looks awesome on your screen!

No, actually is only one frame, prior to simulation. I am using Blender 3.1.2, I don't know if that coud be a reason.

Thanks! I'll be aware to the updates of Molecular Nodes.

Alexsg14 avatar May 22 '22 09:05 Alexsg14

What version of Molecular Nodes are you using? If it's < 0.4.1 try downloading the most recent release and seeing if that works for you. Blender 3.1.2 should be ideal

BradyAJohnston avatar May 22 '22 09:05 BradyAJohnston

I'm using 0.3.8. I'll try with the last version

Alexsg14 avatar May 22 '22 09:05 Alexsg14

Okey! Now for the same file I sent to you and for another one it worked. Thanks!

I will do some more tests with other files and locations, but for now, perfect!

image

Alexsg14 avatar May 22 '22 10:05 Alexsg14

Excellent! Glad it's working now :) The water atoms I believe still aren't being processed properly, but at least they are being imported. I should be able to implement better handling of them in the next update or so.

BradyAJohnston avatar May 22 '22 10:05 BradyAJohnston

Perfect! I don't if now we can do that, but it would be awesome to be able to, for example, hide the water or select freely. (I'm totally new here, if we can do that already, forget it, further work for me)

And thanks again! :D

Alexsg14 avatar May 22 '22 10:05 Alexsg14