Evolution and Niche Specialization of Microbial Taxa in Vaginal Infection and Pregnancy