| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
baselookup
baselookup('Complement', SeqNT)
baselookup('Code', CodeValue)
baselookup('Integer', IntegerValue)
baselookup('Name', NameValue)
| SeqNT | Nucleotide sequence(s) represented by one of the following:
|
| CodeValue | Nucleotide letter code represented by one of the following:
|
| IntegerValue | Single integer representing a nucleotide. For valid integers, see the table Nucleotide Lookup. |
| NameValue | Nucleotide name represented by one of the following:
|
baselookup displays a table of nucleotide codes, integers, names, and complements.
Nucleotide Lookup
| Code | Integer | Nucleotide Name | Meaning | Complement |
|---|---|---|---|---|
| A | 1 | Adenine | A | T |
| C | 2 | Cytosine | C | G |
| G | 3 | Guanine | G | C |
| T | 4 | Thymine | T | A |
| U | 4 | Uracil | U | A |
| R | 5 | Purine | A or G | Y |
| Y | 6 | Pyrimidine | C or T | R |
| K | 7 | Keto | G or T | M |
| M | 8 | Amino | A or C | K |
| S | 9 | Strong interaction (3 H bonds) | C or G | S |
| W | 10 | Weak interaction (2 H bonds) | A or T | W |
| B | 11 | Not A | C or G or T | V |
| D | 12 | Not C | A or G or T | H |
| H | 13 | Not G | A or C or T | D |
| V | 14 | Not T or U | A or C or G | B |
| N, X | 15 | Any nucleotide | A or C or G or T or U | N |
| - | 16 | Gap of indeterminate length | Gap | - |
baselookup('Complement', SeqNT) displays the complementary nucleotide sequence.
baselookup('Code', CodeValue) displays the corresponding meaning and nucleotide name. For ambiguous nucleotide codes (R, Y, K, M, S, W, B, D, H, V, N, and X), the nucleotide name is a descriptive name.
baselookup('Integer', IntegerValue) displays the corresponding letter code, meaning, and nucleotide name.
baselookup('Name', NameValue) displays the corresponding letter code, meaning, and nucleotide name or descriptive name.
Convert a nucleotide sequence to its complementary sequence.
baselookup('Complement', 'TAGCTGRCCAAGGCCAAGCGAGCTTN')
ans =
ATCGACYGGTTCCGGTTCGCTCGAANDisplay the meaning and nucleotide name or descriptive name for the nucleotide codes G and Y.
baselookup('Code', 'G')
ans =
G Guanine
baselookup('Code', 'Y')
ans =
T|C pYrimidineDisplay the nucleotide letter code, meaning, and nucleotide name or descriptive name for the integers 1 and 7.
baselookup('Integer', 1)
ans =
A A - Adenine
baselookup('Integer', 7)
ans =
K G|T - KetoDisplay the corresponding nucleotide letter code, meaning, and name for cytosine and purine.
baselookup('Name','cytosine')
ans =
C C - Cytosine
baselookup('Name','purine')
ans =
R G|A - puRineBioinformatics Toolbox functions: aa2nt, basecount, codoncount, dimercount, geneticcode, int2nt, nt2aa, nt2int, revgeneticcode, seqtool
![]() | basecount | biograph object | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |