To start building community models for all your samples you will need to provide your data to MICOM. MICOM prefers to have the taxonomy and abundances for all samples in a single tidy DataFrame. Here each taxon in each sample is a row which provides its taxonomy and abundance. This may sound a bit confusing but should become pretty clear when looking at an example. MICOM can generate a simple example DataFrame which we can use as guidance.
from micom.data import test_datadata = test_data()data
这将还允许你使用 cutoff 参数指定一个相对丰度截止值,以包括在模型中的分类单元。默认情况下,只包括丰度至少为样本的 0.01% 的分类单元。模型构建将自动并行化到多个 CPU 上,并且应该使用 threads 参数设置的 CPU 核心数。如果任何样本的丰度小于 50%,工作流将警告你。由于我们的数据是随机的,这里可能发生了这种情况。
build 工作流将返回一个模型清单:
manifest
Diener, Christian, Sean M. Gibbons, and Osbaldo Resendis-Antonio. 2020. “MICOM: Metagenome-Scale Modeling to Infer Metabolic Interactions in the Gut Microbiota.”mSystems 5 (1): 10.1128/msystems.00606–19. https://doi.org/10.1128/msystems.00606-19.