Researchers have developed a magnetic wire as a quick and effective way to detect cancer early, according to a study of pigs.