Microbial dynamics reveal the adaptation strategies of ecological niche in distinct anammox consortia under mainstream conditions.