biomol.core.View.extract#

View.extract()[source]#

Extract a new BioMol cropped to the current view.

Returns:

Cropped BioMol object.

Return type:

mol

Examples

mol = BioMol(...)
cropped_mol = mol.atoms[:10].extract()