现在,我正在寻找在Biopython中使用PhyML和智能模型选择的方法。你知道吗
根据PhyML的官方文献(SMS:Smart Model Selection in PhyML:https://academic.oup.com/mbe/article/34/9/2422/3788860),有模型选择的命令行界面(但是我在任何地方都找不到)。Biopython有一个名为from Bio.Phylo.Applications import PhymlCommandline
的模块,可以从python脚本执行PyhML。你知道吗
有没有办法在Python中集成PhymlCommandline和智能模型选择?你知道吗
您可以从ATGC蒙彼利埃生物信息学平台网站的Docs and Materials section下载SMS的源代码。你知道吗
该代码是几个shell脚本的组合,并在后台使用R和PhyML。你知道吗
因此,下载zip文件,解压它,并确保您已经安装了R。你知道吗
该代码依赖于PhyML来计算可能性分数。PhyML源嵌入到SMS tarball中。需要编译的包:
对于Debian:“build essential”
sudo apt-get install build-essential
对于SuSE:'开发基础'
sudo zypper install type pattern devel_basis
对于Red Hat:“C开发工具和库”
sudo yum -y -v groupinstall "C Development Tools and Libraries"
请注意,目录名中的空格可能会导致问题。现在我们需要构建PhyML源代码。你知道吗
然后使shell脚本可执行。你知道吗
现在可以使用以下命令结构运行SMS
其中:
[input-msa]
是PHYLIP格式的输入数据对齐方式[data-type]
对于氨基酸数据可以是aa
,对于DNA数据可以是nt
可选参数包括:
例如,使用The Phylogenetic Handbook中的primatesNT.phy示例文件:
相关问题 更多 >
编程相关推荐