outweights.cpp
来自「unix,linux下编译。用于蛋白质」· C++ 代码 · 共 18 行
CPP
18 行
#include "muscle.h"
#include "msa.h"
void OutWeights(const char *FileName, const MSA &msa)
{
FILE *f = fopen(FileName, "w");
if (0 == f)
Quit("Cannot open '%s'", FileName);
const unsigned uSeqCount = msa.GetSeqCount();
for (unsigned uSeqIndex = 0; uSeqIndex < uSeqCount; ++uSeqIndex)
{
const char *Id = msa.GetSeqName(uSeqIndex);
const WEIGHT w = msa.GetSeqWeight(uSeqIndex);
fprintf(f, "%s\t%.3g\n", Id, w);
}
fclose(f);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?