The researchers analyzed the feces and urine samples of dozens of cats and dogs.