Align multiple sequences using DIALIGN-TX. */
| 81 | |
| 82 | /** Align multiple sequences using DIALIGN-TX. */ |
| 83 | static void alignMulti(const vector<string>& seq, ostream& out) |
| 84 | { |
| 85 | unsigned match; |
| 86 | string alignment; |
| 87 | string consensus = dialign(seq, alignment, match); |
| 88 | float identity = (float)match / consensus.size(); |
| 89 | out << alignment << consensus << '\n' << identity << "\n\n"; |
| 90 | } |
| 91 | |
| 92 | /** Align the specified sequences. */ |
| 93 | static void align(const vector<string>& seq, ostream& out) |