QIIME1格式转换

faprotaxs数据库注释得到的过程报告如何转化成绘物种分类功能热图所需的输入文件?

faprotaxs数据库注释得到的过程报告如何转化成绘物种分类功能热图所需的输入文件?

1.对过程报告整理:

grep 'OTU' -B 1 faprotax_report.txt | grep -v -P '^--$' > faprotax_report.clean

perl otu.pl -iclean faprotax_report.clean -o1 func_otu.txt -o2 func_nums.txt -o3 mat.txt -o4 otu_func.txt

得到功能有无矩阵mat.txt(格式同otu_table后跟物种注释)

attachments-2020-10-zWpN9X955f86a44c0f4f6.png

2.转换成biom格式文件:(docker上下载QIIME1镜像)

biom convert -i mat.txt -o otu_table.from_txt.biom --table-type="OTU table" --process-obs-metadata taxonomy --to-hdf5

3.在运用QIIME1脚本进行分类:

不同水平下相对丰度文件: summarize_taxa.py -i otu_table.from_txt.biom -o taxa_summary/relative_abundance --level 2,3,4,5,6,7

不同水平下绝对丰度文件: summarize_taxa.py -i otu_table.from_txt.biom -o taxa_summary/absolute_abundance -a --level 2,3,4,5,6,7

4.绘图:

  1. 输入文件:L3.txt     R脚本
  2. Rscript faprofax1.R -i L3.txt -o draw -n class
  3. 结果:
  4. attachments-2020-10-5qMHcxU05f86a60c84389.png
  • 发表于 2020-10-14 15:19
  • 阅读 ( 2387 )
  • 分类:宏基因组

0 条评论

请先 登录 后评论
Morii
Morii

15 篇文章

作家榜 »

  1. omicsgene 691 文章
  2. 安生水 340 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. xun 76 文章
  7. rzx 74 文章
  8. CORNERSTONE 72 文章