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

Uncaught TypeError: Cannot read property 'centralAtom' of undefined #175

Open
arthurchipdean opened this issue Mar 9, 2017 · 0 comments

Comments

@arthurchipdean
Copy link

I'm getting this error when trying to cartoon a subselection of the structure of the pdb. If I cartoon the entire structure it works, and what I'm doing works fine on thousands of other pdbs.

var main_chain = structure.atomSelect(function(atom) {
                        return atom._tempFactor == 10 && 
                                  atom.residue().chain().name() == options.chain;
                    });
viewer.cartoon('main-chain', main_chain, {
                        color: color.uniform('#d0ffbf')
                    });

I'm almost positive it's a problem with the pdb itself but it looks fine to me and it loads in pymol. Do you have any suggestions on what the problem may be or a way we could work around it?

Thanks for your help!

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

1 participant