Coder Social home page Coder Social logo

Comments (11)

stefdoerr avatar stefdoerr commented on May 9, 2024

I seriously doubt that. Check the append code. At the end I do:
self.serial = np.arange(1, self.numAtoms+1)
Serials are never preserved in Molecule and should not be assumed to stay the same.

from htmd.

j3mdamas avatar j3mdamas commented on May 9, 2024

You are right... I need to understand why is my cartoon representation breaking then.

from htmd.

stefdoerr avatar stefdoerr commented on May 9, 2024

Bond problems. Can you check if there are bonds in your Molecules? If they are, can you check if after appending they are still correct in Licorice mode? (ignore NewCartoon for the moment)

from htmd.

j3mdamas avatar j3mdamas commented on May 9, 2024

The Licorice representation is fine. Yes, there is bond information in
Molecule.bonds

On Fri, Apr 22, 2016 at 11:09 AM, Stefan [email protected] wrote:

Bond problems. Can you check if there are bonds in your Molecules? If they
are, can you check if after appending they are still correct in Licorice
mode? (ignore NewCartoon for the moment)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#22 (comment)

from htmd.

stefdoerr avatar stefdoerr commented on May 9, 2024

Before appending both Molecules look fine in newcartoon and after appending not anymore?
VMD uses given bonds but also guesses bonds based on distances. Can you disable it's bond guessing in mol.view(guessBonds=False) and try again ?

from htmd.

j3mdamas avatar j3mdamas commented on May 9, 2024

I can give you more detail. I was appending the OPM beads onto the PDB.
Before NewCartoon works, after appending it doesn't. guessBonds=False does
not change.

In fact, the pdb straight from OPM has problems in representing the
cartoon. I thought it was the serial numbering (the OPM beads intercalate
the serials of the protein) but you are right and they are renumbered in
the append. Now I am guessing it's the residue numbering? I am going to
check it.

On Fri, Apr 22, 2016 at 11:18 AM, Stefan [email protected] wrote:

Before appending both Molecules look fine in newcartoon and after
appending not anymore?
VMD uses given bonds but also guesses bonds based on distances. Can you
disable it's bond guessing in mol.view(guessBonds=False) and try again ?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#22 (comment)

from htmd.

j3mdamas avatar j3mdamas commented on May 9, 2024

No, resid makes no sense...

On Fri, Apr 22, 2016 at 11:30 AM, Joao Damas [email protected] wrote:

I can give you more detail. I was appending the OPM beads onto the PDB.
Before NewCartoon works, after appending it doesn't. guessBonds=False does
not change.

In fact, the pdb straight from OPM has problems in representing the
cartoon. I thought it was the serial numbering (the OPM beads intercalate
the serials of the protein) but you are right and they are renumbered in
the append. Now I am guessing it's the residue numbering? I am going to
check it.

On Fri, Apr 22, 2016 at 11:18 AM, Stefan [email protected] wrote:

Before appending both Molecules look fine in newcartoon and after
appending not anymore?
VMD uses given bonds but also guesses bonds based on distances. Can you
disable it's bond guessing in mol.view(guessBonds=False) and try again ?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#22 (comment)

from htmd.

stefdoerr avatar stefdoerr commented on May 9, 2024

Ah then it's normal, if the original PDB also does not show Cartoon correctly. This happens in many cases because the connectivity cannot be guessed correctly. After building the system you will have a psf or prmtop with the correct connectivity and then it will be fine. You need to get used to that and just use Licorice before building if NewCartoon fails.

from htmd.

j3mdamas avatar j3mdamas commented on May 9, 2024

Nope, the original PDB shows it correctly. The OPM beads break it

On Fri, Apr 22, 2016 at 11:36 AM, Stefan [email protected] wrote:

Ah then it's normal, if the original PDB also does not show Cartoon
correctly. This happens in many cases because the connectivity cannot be
guessed correctly. After building the system you will have a psf or prmtop
with the correct connectivity and then it will be fine. You need to get
used to that and just use Licorice before building if NewCartoon fails.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#22 (comment)

from htmd.

j3mdamas avatar j3mdamas commented on May 9, 2024

Test an example from OPM: http://opm.phar.umich.edu/pdb/1uaz.pdb

vmd 1uaz.pdb
Show NewCartoon

Seems more like a VMD than an HTMD issue...

On Fri, Apr 22, 2016 at 11:37 AM, Joao Damas [email protected] wrote:

Nope, the original PDB shows it correctly. The OPM beads break it

On Fri, Apr 22, 2016 at 11:36 AM, Stefan [email protected] wrote:

Ah then it's normal, if the original PDB also does not show Cartoon
correctly. This happens in many cases because the connectivity cannot be
guessed correctly. After building the system you will have a psf or prmtop
with the correct connectivity and then it will be fine. You need to get
used to that and just use Licorice before building if NewCartoon fails.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#22 (comment)

from htmd.

stefdoerr avatar stefdoerr commented on May 9, 2024

It's definitely a VMD "issue". But it's not something that can be fixed without building the system. VMD needs bonds to show Cartoon. If you guess bonds it will fail because of the OPM beads confusing the guesser. If you don't guess bonds it will fail because you don't provide all the protein bonds. Only way is to provide all protein bonds but that requires usually building the system first.

from htmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.