Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
support amino-acid O as the 22nd amino-acid (reported by Cuong)
Browse files Browse the repository at this point in the history
  • Loading branch information
bqminh committed Jun 7, 2018
1 parent 0950043 commit f56c060
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alignment/alignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,7 @@ void Alignment::buildStateMap(char *map, SeqType seq_type) {
map[(unsigned char)'J'] = 22; // I or L
map[(unsigned char)'*'] = STATE_UNKNOWN; // stop codon
map[(unsigned char)'U'] = STATE_UNKNOWN; // 21st amino acid
map[(unsigned char)'O'] = STATE_UNKNOWN; // 22nd amino acid

return;
case SEQ_MULTISTATE:
Expand Down Expand Up @@ -1201,6 +1202,7 @@ char Alignment::convertState(char state, SeqType seq_type) {
if (state == 'J') return 22;
if (state == '*') return STATE_UNKNOWN; // stop codon
if (state == 'U') return STATE_UNKNOWN; // 21st amino-acid
if (state == 'O') return STATE_UNKNOWN; // 22nd amino-acid
loc = strchr(symbols_protein, state);

if (!loc) return STATE_INVALID; // unrecognize character
Expand Down

0 comments on commit f56c060

Please sign in to comment.