sidechainnet/structure/StructureBuilder.py
def to_3Dmol(self, style=None, **kwargs):
        """Generate protein structure & return interactive py3Dmol.view for visualization.

        Args:
            style (str, optional): Style string to be passed to py3Dmol for
                visualization. Defaults to None.

        Returns:
            py3Dmol.view object: A view object that is interactive in iPython notebook
                settings.
        """
        import py3Dmol
        if not style:
            style = {'cartoon': {'color': 'spectrum'}, 'stick': {'radius': .15}}

        view = py3Dmol.view(**kwargs)
        view.addModel(self.to_pdbstr(), 'pdb', {'keepH': True})
        if style:
            view.setStyle(style)
        view.zoomTo()
        return view
Generate protein structure & return interactive py3Dmol.view for visualization.

        Args:
            style (str, optional): Style string to be passed to py3Dmol for
                visualization. Defaults to None.

        Returns:
            py3Dmol.view object: A view object that is interactive in iPython notebook
                settings.
        
Generate protein structure & return interactive py3Dmol.view for visualization.
Generate protein structure & return interactive py3Dmol . view for visualization .
def to_3Dmol(self, style=None, **kwargs):
        import py3Dmol
        if not style:
            style = {'cartoon': {'color': 'spectrum'}, 'stick': {'radius': .15}}
        view = py3Dmol.view(**kwargs)
        view.addModel(self.to_pdbstr(), 'pdb', {'keepH': True})
        if style:
            view.setStyle(style)
        view.zoomTo()
        return view
def to_3Dmol ( self , style = None , ** kwargs ) : import py3Dmol if not style : style = { 'cartoon' : { 'color' : 'spectrum' } , 'stick' : { 'radius' : .15 } } view = py3Dmol . view ( ** kwargs ) view . addModel ( self . to_pdbstr ( ) , 'pdb' , { 'keepH' : True } ) if style : view . setStyle ( style ) view . zoomTo ( ) return view
Generate protein structure & return interactive py3Dmol.view for visualization.
Generate protein structure & return interactive py3Dmol . view for visualization .
"""Generate protein structure & return interactive py3Dmol.view for visualization.

        Args:
            style (str, optional): Style string to be passed to py3Dmol for
                visualization. Defaults to None.

        Returns:
            py3Dmol.view object: A view object that is interactive in iPython notebook
                settings.
        """
py3Dmol.view object: A view object that is interactive in iPython notebook
settings.
py3Dmol . view object : A view object that is interactive in iPython notebook settings .
self
style
Style string to be passed to py3Dmol for
visualization. Defaults to None.
Style string to be passed to py3Dmol for visualization . Defaults to None .