10 # Y Pyrimidine (C, T, or U)
15 # B C, T, U, or G (not A)
16 # D A, T, U, or G (not C)
17 # H A, T, U, or C (not G)
18 # V A, C, or G (not T, not U)
19 # N Any base (A, C, G, T, or U)
37 N => 'ACGTUYMKWSBDHVN',
39 for my $code (keys %code_table) {
41 '['.$code_table{$code} . lc($code_table{$code}) .']';
44 for my $sequence (@ARGV) {
45 print map {exists $code_table{$_}?$code_table{$_}:$_} split //,$sequence;