If you want to know how vampire bats can survive on a diet that — as everyone knows — consists exclusively of blood, the answer is simple. It's in their genes.

Scientists on Monday said they have mapped for the first time the complete genome of a vampire bat, finding that this flying mammal boasts numerous genetic traits that help it thrive on an exotic food source that offers nutritional disadvantages and exposes it to blood-borne pathogens.

The researchers compared the genome of the common vampire bat, scientific name Desmodus rotundus, to genomes of bat species that eat nectar, fruit, insects and meat. They also examined microbial DNA from its droppings.