maketree.cpp
来自「unix,linux下编译。用于蛋白质」· C++ 代码 · 共 39 行
CPP
39 行
#include "muscle.h"
#include "msa.h"
#include "textfile.h"
#include "tree.h"
void DoMakeTree()
{
if (g_pstrInFileName == 0 || g_pstrOutFileName == 0)
Quit("-maketree requires -in <msa> and -out <treefile>");
SetStartTime();
SetSeqWeightMethod(g_SeqWeight1);
TextFile MSAFile(g_pstrInFileName);
MSA msa;
msa.FromFile(MSAFile);
unsigned uSeqCount = msa.GetSeqCount();
MSA::SetIdCount(uSeqCount);
// Initialize sequence ids.
// From this point on, ids must somehow propogate from here.
for (unsigned uSeqIndex = 0; uSeqIndex < uSeqCount; ++uSeqIndex)
msa.SetSeqId(uSeqIndex, uSeqIndex);
SetMuscleInputMSA(msa);
Progress("%u sequences", uSeqCount);
Tree tree;
TreeFromMSA(msa, tree, g_Cluster2, g_Distance2, g_Root2);
TextFile TreeFile(g_pstrOutFileName, true);
tree.ToFile(TreeFile);
Progress("Tree created");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?