📄 outweights.cpp
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -