BackgroundEarly weaning and intensive farming practices predispose piglets to the development of infectious and often lethal diseases, against which antibiotics are used. Besides contributing to the build-up of antimicrobial resistance, antibiotics are known to modulate the gut microbial composition. Studies have previously investigated the effects of probiotics as alternatives to antibiotic treatment for the prevention of post-weaning diarrhea. In order to describe the post-weaning gut microbiota, and the effects of two probiotics formulations and of intramuscular antibiotic treatment on the gut microbiota, we processed over 800 faecal time-series samples from 126 piglets and 42 sows, generating over 8Tbp of metagenomic shotgun sequence data. Here we describe the animal trial procedures, the generation of our metagenomic dataset and the analysis of the microbial community composition using a phylogenetic framework.ResultsFactors such as age, litter effects, and breed, by significantly correlating with gut microbial community shifts, can be major confounding factors in the assessment of treatment effects. Intramuscular antibiotic treatment and probiotic treatments were found to correlate with alpha and beta diversity, as well as with a transient establishment of Mollicutes and Lactobacillales, respectively. We found the abundance of certain taxa to correlate with weight gain.ConclusionsOur findings demonstrate that breed, litter, and age, are important contributors to variation in the community composition, and that treatment effects of the antibiotic and probiotic treatments were subtle, while host age was the dominant factor in shaping the gut microbiota of piglets after weaning. The current study shows, by means of a phylogenetic diversity framework, that the post-weaning pig gut microbiome appears to follow a highly structured developmental program with characteristic post-weaning changes that can distinguish hosts that were born as little as two days apart in the second month of life.