| Line | |
|---|
| 1 | #include "muscle.h" |
|---|
| 2 | #include "msa.h" |
|---|
| 3 | |
|---|
| 4 | void Stabilize(const MSA &msa, MSA &msaStable) |
|---|
| 5 | { |
|---|
| 6 | const unsigned uSeqCount = msa.GetSeqCount(); |
|---|
| 7 | const unsigned uColCount = msa.GetColCount(); |
|---|
| 8 | |
|---|
| 9 | msaStable.SetSize(uSeqCount, uColCount); |
|---|
| 10 | for (unsigned uId = 0; uId < uSeqCount; ++uId) |
|---|
| 11 | { |
|---|
| 12 | const unsigned uSeqIndex = msa.GetSeqIndex(uId); |
|---|
| 13 | msaStable.SetSeqName(uId, msa.GetSeqName(uSeqIndex)); |
|---|
| 14 | msaStable.SetSeqId(uSeqIndex, uId); |
|---|
| 15 | for (unsigned uColIndex = 0; uColIndex < uColCount; ++uColIndex) |
|---|
| 16 | { |
|---|
| 17 | const char c = msa.GetChar(uSeqIndex, uColIndex); |
|---|
| 18 | msaStable.SetChar(uId, uColIndex, c); |
|---|
| 19 | } |
|---|
| 20 | } |
|---|
| 21 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.