void DeleteGappedCols(MSA &msa) { unsigned uColIndex = 0; for (;;) { if (uColIndex >= msa.GetColCount()) break; if (msa.IsGapColumn(uColIndex)) msa.DeleteCol(uColIndex); else ++uColIndex; } }
void StripGapColumns( MSA& msa ) { unsigned uCurCol = 0; for( unsigned uColIndex = 0; uColIndex < msa.GetColCount(); uColIndex++ ) { if( !msa.IsGapColumn(uColIndex) ) { for( unsigned uGapSeq = 0; uGapSeq < msa.GetSeqCount(); uGapSeq++ ) { msa.SetChar(uGapSeq, uCurCol, msa.GetChar(uGapSeq,uColIndex)); } uCurCol++; } } msa.DeleteColumns(uCurCol, msa.GetColCount()-uCurCol); }