It was previously known that the structure of a piece of DNA could be changed using acid, which causes it to fold up into what is known as an 'i-motif'.
The researchers showed that the structure can be switched a second time into a hair-pin structure using positively-charged copper (copper cations).
This change can also be reversed using Ethylenediaminetetraacetic acid (EDTA)- an agent commonly found in shampoo and other household products.
It could also be used for detecting the presence of copper cations, which are highly toxic to fish and other aquatic organisms, in water.
"Our research shows how the structure of our genetic material - DNA - can be changed and used in a way we didn't realise," said lead researcher Zoe Waller, from University of East Anglia 's school of Pharmacy.
"A single switch was possible before - but we show for the first time how the structure can be switched twice," Waller said.
"They are traditionally made using diodes or transistors which act as electronic switches," Waller said.
"This research expands how DNA could be used as a switching mechanism for a logic gate in DNA-based computing or in nano-technology," Waller said.
The study was published in the journal Chemical Communications.
