# 进入工做目录 cd example_PE250
# clustalo多序列比对,若是没有请安装Clustal Omega clustalo -i result/rep_seqs4.fa -o temp/rep_seqs_align.fa --seqtype=DNA --full --force --threads=30 # 筛选结果中保守序列和保守区 filter_alignment.py -i temp/rep_seqs_align.fa -o temp/ # rep_seqs_align_pfiltered.fa, only very short conserved region saved # 基于fasttree建树 make_phylogeny.py -i temp/rep_seqs_align_pfiltered.fasta -o result/rep_seqs.tree # generate tree by FastTree
# 查看样品的数据量最小值 biom summarize-table -i result/otu_table4.biom # 基于最小值进行重抽样标准化 single_rarefaction.py -i result/otu_table4.biom -o temp/otu_table_rare.biom -d 2797 # 计算经常使用的四种Alpha多样性指数 alpha_diversity.py -i temp/otu_table_rare.biom -o result/alpha.txt -t result/rep_seqs.tree -m shannon,chao1,observed_otus,PD_whole_tree
# CSS标准化OTU表 normalize_table.py -i result/otu_table4.biom -o temp/otu_table_css.biom -a CSS # 转换标准化OTU表为文本,用于后期绘图 biom convert -i temp/otu_table_css.biom -o result/otu_table_css.txt --table-type="OTU table" --to-tsv # 删除表格多余信息,方便R读取 sed -i '/# Const/d;s/#OTU //g;s/ID.//g' result/otu_table_css.txt # 计算Beta多样性 beta_diversity.py -i temp/otu_table_css.biom -o result/beta/ -t result/rep_seqs.tree -m bray_curtis,weighted_unifrac,unweighted_unifrac # Beta多样性距离文件整理,方便R读取 sed -i 's/^\t//g' result/beta/*