Life cycle patterns of tapeworms that infect humans