--- /dev/null
+#include "muscle.h"\r
+#include "msa.h"\r
+\r
+void Stabilize(const MSA &msa, MSA &msaStable)\r
+ {\r
+ const unsigned uSeqCount = msa.GetSeqCount();\r
+ const unsigned uColCount = msa.GetColCount();\r
+\r
+ msaStable.SetSize(uSeqCount, uColCount);\r
+ for (unsigned uId = 0; uId < uSeqCount; ++uId)\r
+ {\r
+ const unsigned uSeqIndex = msa.GetSeqIndex(uId);\r
+ msaStable.SetSeqName(uId, msa.GetSeqName(uSeqIndex));\r
+ msaStable.SetSeqId(uSeqIndex, uId);\r
+ for (unsigned uColIndex = 0; uColIndex < uColCount; ++uColIndex)\r
+ {\r
+ const char c = msa.GetChar(uSeqIndex, uColIndex);\r
+ msaStable.SetChar(uId, uColIndex, c);\r
+ }\r
+ }\r
+ }\r