if encoding == 'bpforms.ProteinForm':
                            try:
                                subunit_structure = bpforms.ProteinForm().from_str(subunit['structure'])
                                sum_length += len(subunit_structure) * bc_form.get_subunit_attribute(subunit_id, 'stoichiometry')
                                bc_form.set_subunit_attribute(subunit_id, 'structure', subunit_structure)