def convert_to_bundleClass_format(samcc_selection):
	"""converts samcc selection from this library to original format used by bundleClass
	input: samcc-ready selection, list of helices, each helix a list of format [ chain_id(string), start_residue(int), stop_residue(int) ]
	output: BundleClass-ready selection, list of helices, each helix a tuple of format ( start_residue(int), stop_residue(int), chain_id(string), antiparallel(bool) )
	"""

	input_helices = []
	for helix in samcc_selection:
		if helix[1] < helix[2]:
			input_helices.append((helix[1], helix[2], helix[0], False))
		else:
			input_helices.append((helix[2], helix[1], helix[0], True))

	return input_helices