All parasitic worms that can be found in frogs are not contagious to human or any other warm blooded being! and vise versa human parasitic worms are not contagious to a frog. In fact very small amount of worm species can affect people.
Grif if you think I'm wrong, please provide species of parasitic worms that can be found in both frogs and humans, nobody knows everything and if I'm wrong I would love to know it.
Dr. Matt - even if those "grains" are not worms, runny poop alone is a sign of something parasitic that is going on.