def FindClashes(chains_fixed, re_chain_movil):
	"""Searches for clashes between pairs of chains.

	Arguments:
		chains_fixed -- list of residues
		re_chain_movil -- list of chains

	Returns:
		True if it finds one clash between the residues of chains_fixed and any residue belonging to the chains of re_chain_movil
		False if it does not find any clash
	"""

	aa=['ALA', 'ARG', 'ASN', 'ASP', 'CYS', 'GLU', 'GLN', 'GLY', 'HIS', 'ILE', 'LEU', 'LYS', 'MET', 'PHE', 'PRO', 'SER', 'THR', 'TRP', 'TYR', 'VAL']
	for chain in chains_fixed:
		re_chain_fixed = [i for i in chain]
		for r1 in re_chain_fixed:
			for r2 in re_chain_movil:
				if r1.get_resname() in aa and r2.get_resname() in aa:
					distance = r1['CA'] - r2['CA']
					if distance < 2:
						return True
				else:
					for atom1 in r1.get_atoms():
						for atom2 in r2.get_atoms():
							distance = atom1 - atom2
							if distance < 1:
								return True
	return False