Skip to content

Instantly share code, notes, and snippets.

@misshie
Last active August 29, 2015 13:56
Show Gist options
  • Save misshie/9338602 to your computer and use it in GitHub Desktop.
Save misshie/9338602 to your computer and use it in GitHub Desktop.
The table of IUPAC ambiguous nucleic acid notation
iupac = {
"A" => ["A"], # Adenine
"C" => ["C"], # Cytosine
"G" => ["G"], # Guanine
"T" => ["T"], # Thymine
"R" => ["A", "G"], # puRine
"Y" => ["C", "T"], # pYrimidine
"S" => ["G", "C"], # Strong
"W" => ["A", "T"], # Weak
"K" => ["G", "T"], # Keto
"M" => ["A", "C"], # aMino
"D" => ["A", "G", "T"], # after C
"B" => ["G", "T", "C"], # after A
"H" => ["A", "T", "C"], # after G
"V" => ["A", "G", "C"], # after T and U
"N" => ["A", "C", "G", "T"], # aNy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment