Image copyright Getty Images Image caption Scientists say the negative image of wolves is not always justified

Wolves lead and dogs follow - but both are equally capable of working with humans, according to research that adds a new twist in the tale of how one was domesticated from the other.

Dogs owe their cooperative nature to "the wolf within", the study, of cubs raised alongside people, suggests.

But in the course of domestication, those that were submissive to humans were selected for breeding, which makes them the better pet today.

Scientific Reports published the study.

Image copyright Friederike Range/Vetmeduni Vienna Image caption Dogs were more likely to follow human behaviour

Image copyright Friederike Range/Vetmeduni Vienna Image caption Wolves were equally able to cooperate with humans but also took the lead

Grey wolves, at the Wolf Science Center in Vienna, were just as good as dogs at working with their trainers to drag a tray of food towards them by each taking one end of a rope.

But, unlike the dogs in the study, they were willing to try their own tactics as well - such as stealing the rope from the trainer.

Friederike Range, from the Konrad Lorenz Institute, at Vetmeduni Vienna university, said: "It shows that, while wolves tend to initiate behaviour and take the lead, dogs are more likely to wait and see what the human partner does and follow that behaviour."

About 30,000 years ago, wolves moved to the edges of human camps to scavenge for leftovers.

The subsequent "taming" process of domestication and selective breeding then slowly began to alter their behaviour and genes and they eventually evolved into the dogs that we know today.

Follow Helen on Twitter.