Hello! I have been using the vtkProteinRibbonFilter to render .pdb files. I managed for the visualization to work. A short snippet of what im doing:
self._molecule_reader = vtk.vtkPDBReader() self._molecule_reader.SetFileName(file_path) self._molecule_filter = vtk.vtkProteinRibbonFilter() self._molecule_filter.SetInputConnection(self._molecule_reader.GetOutputPort()) self._raw_polydata = self._molecule_filter.GetOutput() self._molecule_filter.Update()
I am managing to get the points by doing this:
point_coordinates = dsa.WrapDataObject(self._raw_polydata).Points
this returns a the xyz coordinates for each point in the molecule. However i am not being able to retrieve the remianing data in the pdb file, for example: Atom id, residue or atom name, aminoacid in which the atom is embedded. So to sum up i am failing to get all the remaining info in the pdb file apart from the coordinates. Can anyone shed some light into this? thank you!