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

No ring containing this atom index was found in the given molecule , #1

Open
SynchronyML opened this issue Apr 6, 2022 · 0 comments

Comments

@SynchronyML
Copy link

Thank you very much for the help of your software in our study, but I still encountered some difficulties in coloring. The performance is that after I use gromacs to perform kinetic calculations, whether I load the gro file, pdb file, tpr file, and xtc file together, the network calculation cannot be performed correctly. The specific error is as follows. I used rdkit to check the small molecule and found that it can be recognized.The specific error information is as follows:
The relevant files are attached as follows (tpr/xtc/ipynb file)
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
----> 1 net.show("../Figures/lignetwork.html")

~/anaconda3/envs/prolif-paper/lib/python3.8/site-packages/prolif/utils.py in wrapper(*args, **kwargs)
28 def wrapper(*args, **kwargs):
29 if find_spec(module):
---> 30 return func(*args, **kwargs)
31 raise ModuleNotFoundError(
32 f"The module {module!r} is required to use {func.name!r} "

~/anaconda3/envs/prolif-paper/lib/python3.8/site-packages/prolif/plotting/network.py in show(self, filename, **kwargs)
699 def show(self, filename, **kwargs):
700 """Save the network as HTML and display the resulting file"""
--> 701 html = self._get_html(**kwargs)
702 with open(filename, "w") as f:
703 f.write(html)

~/anaconda3/envs/prolif-paper/lib/python3.8/site-packages/prolif/plotting/network.py in _get_html(self, **kwargs)
542 def _get_html(self, **kwargs):
543 """Returns the HTML code to draw the network"""
--> 544 return self._HTML_TEMPLATE % dict(js=self._get_js(**kwargs))
545
546 def _get_legend(self, height="90px"):

~/anaconda3/envs/prolif-paper/lib/python3.8/site-packages/prolif/plotting/network.py in _get_js(self, width, height, div_id, fontsize)
518 self.width = width
519 self.height = height
--> 520 self._make_graph_data()
521 options = {
522 "width": width,

~/anaconda3/envs/prolif-paper/lib/python3.8/site-packages/prolif/plotting/network.py in _make_graph_data(self)
504 self.edges = []
505 # show residues
--> 506 self._make_interactions()
507 # show ligand
508 for atom in self.mol.GetAtoms():

~/anaconda3/envs/prolif-paper/lib/python3.8/site-packages/prolif/plotting/network.py in _make_interactions(self, mass)
444 (weight,)) in self.df.iterrows():
445 if interaction in self._LIG_PI_INTERACTIONS:
--> 446 centroid = self._get_ring_centroid(lig_id)
447 origin = str((lig_res, prot_res, interaction))
448 self.nodes[origin] = {'id': origin,

~/anaconda3/envs/prolif-paper/lib/python3.8/site-packages/prolif/plotting/network.py in _get_ring_centroid(self, index)
474 break
475 else:
--> 476 raise ValueError("No ring containing this atom index was found in "
477 "the given molecule")
478 return self.xyz[list(r)].mean(axis=0)

ValueError: No ring containing this atom i
question.zip
ndex was found in the given m
question.zip
olecule`

The relevant files are attached as follows (tpr/xtc/ipynb file)

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