Dynamics analysis for longitudinal community omics