Understanding community-level microbial interaction using synthetic data