Like most people, Daniel Ibrahim remembers exactly where he was the first time he came across a tiny, bug-eyed, toothless, limp-tongued cat called Lil Bub, the internet-breaking Queen of Cute. It was September 2014, during a mild night in Berlin, when the molecular geneticist found himself watching a Vice documentary on social media-famous felines by the blue light of his computer. But unlike most people, Ibrahim’s next move wasn’t to buy a Lil Bub shirt or join the ranks of her 2.1 million Instagram followers.

First thing the next morning he bounded over to the office of his fellow Max Plank Institute postdoc Dario Lupianez, who now heads a lab at the Berlin Institute for Medical Systems Biology. “You’ve got to see this,” Ibrahim told him, pulling up the video. Specifically, the part where Lil Bub’s veterinarian examines her X-rays and points to her dense leg bones, curving bizarrely like the contour of an Erlenmeyer flask. They looked exactly like a human case of osteopetrosis—a rare genetic limb malformation disorder that the pair of scientists were studying. “We should really sequence this cat,” said Lupianez.

Now nearly five years later, with the help of a successful crowdfunding campaign, an international feline genome consortium, and Lil Bub’s “dude,” Mike Bridavsky, they finally have. In her internet-royal blood the scientists uncovered two genetic abnormalities that help explain her signature squee-ness—extra toes, short stature, wonky gait, and a tongue that is forever lolling out of her mouth. Their discovery, which they posted on the preprint server bioRxiv in February, is not only helping Bridavsky care for Lil Bub as she ages, it could one day aid doctors in better treating human patients of osteopetrosis. And just as Bub blazed a trail for viral cat celebrity, by having her DNA sequenced she is once again leading the way, only this time toward precision veterinary medicine.

LEARN MORE The WIRED Guide to Memes

It didn’t take long for Ibrahim and Lupianez to track down an email address for Bridavsky, who had adopted Bub—the runt of a litter found orphaned in a tool shed outside of Bloomington, Indiana—when she was just a kitten. But it took the scientists a few weeks to figure out how exactly to ask him what was on their minds. They wrote draft after agonizing draft before finally hitting send from Lupianez’s computer. Ibrahim had not yet finished walking the corridor back to the lab before they got a reply.

“I was like, absolutely yes,” says Bridavsky, recalling the exchange. “I’ve always thought that Bub was magical, and what’s magic but everything that hasn’t yet been explained by science?”

At her next vet appointment, Bridavsky had some of Bub’s blood drawn and sent to Berlin, where it went into a freezer until the scientists could figure out how to pay for their DNA sequencing project. It didn’t exactly fit the mold of conventional research grants. The idea to crowdfund the endeavor came a few months later, over beers with a University of Pennsylvania molecular biologist named Orsolya Symmons, who quickly joined the project. “We figured if we were so curious, other people around the world might also want to know this as well,” she says. They raised more than $8,000 from 250 people in a matter of weeks. Piecing together the puzzle of Bub would take the next four years.

In human cases of genetic disease, tracking down a rare mutation often works like this: You sequence the patient and then you sequence their parents. If both parents are healthy, you can rule out any overlapping stretches of DNA that they share with their child. That wasn’t an option with Bub. “We didn’t have any information about her parents or their DNA or anything, nothing at all," Lupianez says. So they compared her genetic material to a completely unrelated cat named Cinnamon, the first feline to have its genome decoded. By using her as a reference they could begin to map out Bub’s unique sequence and figure out what it all meant.