Source code for molsysmt.form.biopython_SeqRecord.extract
from molsysmt._private.smonitor import NotImplementedMethodError
from molsysmt._private.argdigest import arg_digest
from molsysmt._private.variables import is_all
from depdigest import dep_digest
[docs]
@arg_digest(form='biopython.SeqRecord')
@dep_digest('Bio')
def extract(item, atom_indices='all', structure_indices='all', copy_if_all=True, skip_digestion=False):
if is_all(atom_indices):
if copy_if_all:
tmp_item = item.copy()
else:
tmp_item = item
else:
raise NotImplementedMethodError
return tmp_item