def add_group(data_api, data_setters, group_index):
group_type_ind = data_api.group_type_list[group_index]<EOL>atom_count = len(data_api.group_list[group_type_ind]["<STR_LIT>"])<EOL>insertion_code = data_api.ins_code_list[group_index]<EOL>data_setters.set_group_info(data_api.group_list[group_type_ind]["<STR_LIT>"],<EOL>data_api.group_id_list[group_index], insertion_code,<EOL>data_api.group_list[group_type_ind]["<STR_LIT>"],<EOL>atom_count, data_api.num_bonds,<EOL>data_api.group_list[group_type_ind]["<STR_LIT>"],<EOL>data_api.sequence_index_list[group_index],<EOL>data_api.sec_struct_list[group_index])<EOL>for group_atom_ind in range(atom_count):<EOL><INDENT>add_atom_data(data_api, data_setters,<EOL>data_api.group_list[group_type_ind]["<STR_LIT>"],<EOL>data_api.group_list[group_type_ind]["<STR_LIT>"],<EOL>data_api.group_list[group_type_ind]["<STR_LIT>"],<EOL>group_atom_ind)<EOL>data_api.atom_counter +=<NUM_LIT:1><EOL><DEDENT>add_group_bonds(data_setters,<EOL>data_api.group_list[group_type_ind]["<STR_LIT>"],<EOL>data_api.group_list[group_type_ind]["<STR_LIT>"])<EOL>return atom_count<EOL>
Add the data for a whole group.
    :param data_api the data api from where to get the data
    :param data_setters the class to push the data to
    :param group_index the index for this group