I was wondering if there is a way for Houdini 9 to read .PDB (Protein Database) data. I know lightwave has a plugin available called PDB Reader and it was used heavily by XVIVO lead animator John Liebler in the creation of The Inner Life of a Cell. If you haven't seen it it is worth the time. Here is the link: www.youtube.com/watch?v=kxSLw1LMvgk
Here is a sample of the data contained in the Chlorotriflouride(LP).pdb file
COMPND Chlorotriflouride(LP).pdb
HETATM 1 Cl -0.3136 0.3145 0.0966
HETATM 2 F -1.9557 0.0544 0.0378
HETATM 3 F -0.1257 -1.3145 -0.1830
HETATM 4 F 1.3369 0.4039 0.2987
HETATM 5 Lp -0.3836 0.4942 1.2249
HETATM 6 Lp -0.2574 0.8438 -0.8225
CONECT 1 2 3 4 5
CONECT 1 6
CONECT 2 1
CONECT 3 1
CONECT 4 1
CONECT 5 1
CONECT 6 1
END
The HETATM lines suggest XYZ transform values for the individual molecules and if that were true then, hey, that's just peachy! Now how would I get Houdini to read this data and build me a set of points representing the Chlorotriflouride molecule?
Any help in this regard would be appreciated. Thank you
Barad
Protein Database files (.PDB) and Houdini.
16413 17 5- Barad_Dur
- Member
- 46 posts
- Joined: Oct. 2006
- Offline
- Len
- Member
- 133 posts
- Joined: July 2007
- Offline
From what I understand you'll need to build a custom plugin to read special file formats inside Houdini. I've played with it a bit. It's not too bad.
There's also hscript which can be run independently of Houdini and can generate geometry files that can later be loaded into Houdini.
This is pretty handy for building procedural geometry simply.
Check out the hscript tutorials and docs. Perhaps it could help.
There's also hscript which can be run independently of Houdini and can generate geometry files that can later be loaded into Houdini.
This is pretty handy for building procedural geometry simply.
Check out the hscript tutorials and docs. Perhaps it could help.
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Online
- Barad_Dur
- Member
- 46 posts
- Joined: Oct. 2006
- Offline
- JohnBardakos
- Member
- 57 posts
- Joined: April 2006
- Offline
I am currently working with PDB files and was thinking about the same thing about a week ago.
I finaly decided that i didnt have enough time to start experimenting with Hscript and to cheat and work with pointclouds exported from LW…
(there is an older but really good PDB reader or LW @ chromecow.com)
there are a few Maya PDB readers tho @highend3d.com
so if you know anyone that can handle MEL and use the same technique
i dont think it would be too difficult…
U can also use Chimera and export RIBs
(Even blender has a PDB importer i u want)
(not to mention POVray)
cheers
J.
I finaly decided that i didnt have enough time to start experimenting with Hscript and to cheat and work with pointclouds exported from LW…
(there is an older but really good PDB reader or LW @ chromecow.com)
there are a few Maya PDB readers tho @highend3d.com
so if you know anyone that can handle MEL and use the same technique
i dont think it would be too difficult…
U can also use Chimera and export RIBs
(Even blender has a PDB importer i u want)
(not to mention POVray)
cheers
J.
- edward
- Member
- 7893 posts
- Joined: July 2005
- Offline
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
- Antoine Durr
- Member
- 321 posts
- Joined: July 2005
- Offline
Barad_Dur
I was wondering if there is a way for Houdini 9 to read .PDB (Protein Database) data. I know lightwave has a plugin available called PDB Reader and it was used heavily by XVIVO lead animator John Liebler in the creation of The Inner Life of a Cell. If you haven't seen it it is worth the time. Here is the link: www.youtube.com/watch?v=kxSLw1LMvgk
Here is a sample of the data contained in the Chlorotriflouride(LP).pdb file
COMPND Chlorotriflouride(LP).pdb
HETATM 1 Cl -0.3136 0.3145 0.0966
HETATM 2 F -1.9557 0.0544 0.0378
HETATM 3 F -0.1257 -1.3145 -0.1830
HETATM 4 F 1.3369 0.4039 0.2987
HETATM 5 Lp -0.3836 0.4942 1.2249
HETATM 6 Lp -0.2574 0.8438 -0.8225
CONECT 1 2 3 4 5
CONECT 1 6
CONECT 2 1
CONECT 3 1
CONECT 4 1
CONECT 5 1
CONECT 6 1
END
The HETATM lines suggest XYZ transform values for the individual molecules and if that were true then, hey, that's just peachy! Now how would I get Houdini to read this data and build me a set of points representing the Chlorotriflouride molecule?
Any help in this regard would be appreciated. Thank you
Barad
It would be pretty trivial to write a Perl filter to turn this into a .geo format file; then you modify the GEOio file to have the Perl translator convert this on the fly to .geo format, and presto, Houdini will be able to natively understand this format.
What's not clear to me is what to do with each of the Chlorine, Fluorine, or Lp elements (is Lp lone-pair?) You could set a string attribute, or a point group with the appropriate name. But at some point, all the constituent elements need to be dereferenced, e.g. with a copy/stamp operation, else you'll just have a bunch of points with some connecting edges.
Is the spec for the format available somewhere?
– Antoine
- Barad_Dur
- Member
- 46 posts
- Joined: Oct. 2006
- Offline
Antoine,
I looked for specs over at http://www.wwpdb.org/docs.html [wwpdb.org] and i think I found a piece of the puzzle but it was like accidently bashing a huge wasp nest. I do think that this is where descriptions and acceptable formats for PDB files will be found - or at least a start. Thanks for getting me to look in the right direction.
David
I looked for specs over at http://www.wwpdb.org/docs.html [wwpdb.org] and i think I found a piece of the puzzle but it was like accidently bashing a huge wasp nest. I do think that this is where descriptions and acceptable formats for PDB files will be found - or at least a start. Thanks for getting me to look in the right direction.
David
- JohnBardakos
- Member
- 57 posts
- Joined: April 2006
- Offline
- JohnBardakos
- Member
- 57 posts
- Joined: April 2006
- Offline
http://www.wwpdb.org/docs.html [wwpdb.org]
(file format info among others)
http://cvcweb.ices.utexas.edu/software/ [cvcweb.ices.utexas.edu]
(these guys @CVC work alot with Pdb format ..)
http://www.chromecow.com/index.php?s=PDB&submit=Go [chromecow.com]
(for LW)
http://www.highend3d.com/maya/downloads/mel_scripts/modeling/misc/pdbReader-1641.html [highend3d.com]
(For Maya)
http://www.highend3d.com/3dsmax/downloads/scripts/utility_external/import/Molecule-Importer-4407.html [highend3d.com]
(for 3DSMax)
or here :
http://www.mtco.com/~cwtooley/Molecule/ [mtco.com]
(ouch ..my eyes)
http://www.malte-reimold.de/blender/pdb2blend.html [malte-reimold.de]
(for blender
)
(file format info among others)
http://cvcweb.ices.utexas.edu/software/ [cvcweb.ices.utexas.edu]
(these guys @CVC work alot with Pdb format ..)
http://www.chromecow.com/index.php?s=PDB&submit=Go [chromecow.com]
(for LW)
http://www.highend3d.com/maya/downloads/mel_scripts/modeling/misc/pdbReader-1641.html [highend3d.com]
(For Maya)
http://www.highend3d.com/3dsmax/downloads/scripts/utility_external/import/Molecule-Importer-4407.html [highend3d.com]
(for 3DSMax)
or here :
http://www.mtco.com/~cwtooley/Molecule/ [mtco.com]
(ouch ..my eyes)
http://www.malte-reimold.de/blender/pdb2blend.html [malte-reimold.de]
(for blender
)
- HUGHSPEERS
- Member
- 82 posts
- Joined: Sept. 2008
- Offline
- madrenderman
- Member
- 129 posts
- Joined: June 2016
- Offline
- tamte
- Member
- 8820 posts
- Joined: July 2007
- Online
- madrenderman
- Member
- 129 posts
- Joined: June 2016
- Offline
- HUGHSPEERS
- Member
- 82 posts
- Joined: Sept. 2008
- Offline
Hey signore madrenderman
you might find this thread interesting
https://www.sidefx.com/forum/topic/34137/ [www.sidefx.com]
It might be a bit old now though and I went about connecting them in a very convoluted way. learned a lot though.
When I revisited this a few years later I found that using the ‘connectadjacentpieces’ sop and connecting by points was the quickest way to bond them. Just scale up and down the search radi until they connect correctly .
your probably beyond this but for the sake of the thread - modelling the sop way would be to use ‘group’ and ‘colour’ sops to colour them.
And ‘create attribute’ sops to set Pscale.
Or use ‘VOP’ or ‘wrangle’ nodes to set these attributes.
Then feed them all of those coloured and scaled points into a ‘copy to points’ sop, with a ‘metaball’ or ‘sphere’ plugged in the other side.
I got a bit stuck with mantra and rendering transparency and colour with objects inside objects, which you are likely to do for rendering molecular models. You can set the surface priority - look up absorption and nested dielectrics for this.
After revisiting this I think the problems I was having with nested dialetrics might have been caused by my scene scale.
Please let me know if you get some nice renders working with this look.
Also data wise - look out for miscellaneous water atoms H and O, and sometimes the data provides alternative configurations.
you might have to group and delete a few things to clean up before modeling the points.
Cheers
John
you might find this thread interesting
https://www.sidefx.com/forum/topic/34137/ [www.sidefx.com]
It might be a bit old now though and I went about connecting them in a very convoluted way. learned a lot though.
When I revisited this a few years later I found that using the ‘connectadjacentpieces’ sop and connecting by points was the quickest way to bond them. Just scale up and down the search radi until they connect correctly .
your probably beyond this but for the sake of the thread - modelling the sop way would be to use ‘group’ and ‘colour’ sops to colour them.
And ‘create attribute’ sops to set Pscale.
Or use ‘VOP’ or ‘wrangle’ nodes to set these attributes.
Then feed them all of those coloured and scaled points into a ‘copy to points’ sop, with a ‘metaball’ or ‘sphere’ plugged in the other side.
I got a bit stuck with mantra and rendering transparency and colour with objects inside objects, which you are likely to do for rendering molecular models. You can set the surface priority - look up absorption and nested dielectrics for this.
After revisiting this I think the problems I was having with nested dialetrics might have been caused by my scene scale.
Please let me know if you get some nice renders working with this look.
Also data wise - look out for miscellaneous water atoms H and O, and sometimes the data provides alternative configurations.
you might have to group and delete a few things to clean up before modeling the points.
Cheers
John
Edited by HUGHSPEERS - March 30, 2019 07:20:06
- madrenderman
- Member
- 129 posts
- Joined: June 2016
- Offline
John, thank you for these informations, very useful, in this moment I was trying to understand how to connect all those points using add testing all the attributes available after importing. I'm going to read the post you are telling me, it's exactly what I was looking for.
P.S. It was funny because I started to research online how to open these pdb files, I tried to see if Rhino, polytrans or Maya could open them, I tested a Maya mel script … crash, I was looking for an xml importer … then I thought … let me try … Houdini/import … all the points imported with complete list of attributes, noooo
Thank you
Ray
P.S. It was funny because I started to research online how to open these pdb files, I tried to see if Rhino, polytrans or Maya could open them, I tested a Maya mel script … crash, I was looking for an xml importer … then I thought … let me try … Houdini/import … all the points imported with complete list of attributes, noooo
Thank you
Ray
Edited by madrenderman - March 30, 2019 07:33:03
- madrenderman
- Member
- 129 posts
- Joined: June 2016
- Offline
It would be nice to understand how to create this visualization of the pdb points
https://www.rcsb.org/3d-view/3J83?fbclid=IwAR0gZjqdEnIu-EJu9fUEaQGZFJlHR2qdfKvYOkCDdJWl3rdQn5y22JQK4RQ [www.rcsb.org]
https://www.rcsb.org/3d-view/3J83?fbclid=IwAR0gZjqdEnIu-EJu9fUEaQGZFJlHR2qdfKvYOkCDdJWl3rdQn5y22JQK4RQ [www.rcsb.org]
-
- Quick Links