Source code for molsysmt.form.biopython_SeqRecord.extract
from molsysmt._private.exceptions import NotImplementedMethodError
from molsysmt._private.digestion import digest
from molsysmt._private.variables import is_all
[docs]
@digest(form='biopython.SeqRecord')
def extract(item, group_indices='all', copy_if_all=True, skip_digestion=False):
if is_all(group_indices):
if copy_if_all:
tmp_item = item.copy()
else:
tmp_item = item
else:
raise NotImplementedMethodError
return tmp_item