expands the possibly degenerate sequence bioseq into all fully specified corresponding sequences.


expands the sequence bioseq into at most n fully specified corresponding sequences.


  • BioSequenceInstances uses the type of the sequence to resolve all degenerate letters into their corresponding fully specified letters.
  • Allowed degenerate letters for DNA and RNA include:
  • BC, G or T/U
    DA, G or T/U
    HA, C or T/U
    KG or T/U
    MA or C
    NA, C, G or T/U
    RA or G
    SC or G
    VA, C or G
    WA or T/U
    YC or T/U
  • Allowed degenerate letters for peptides include:
  • BD or N
    JI or L
    XA, C, D, E, F, G, H, I, K, L, M, N, O, P, Q, R, S, T, U, V, W, Y
    ZE or Q


open allclose all

Basic Examples  (1)

Show all of the potential sequences corresponding to a given degenerate sequence:

Scope  (3)

Limit the number of instances:

Expand a degenerate RNA sequence:

Expand a degenerate peptide sequence:

Properties & Relations  (1)

Expanding degenerate letters forms all of the tuples of the letters they correspond to:

Wolfram Research (2020), BioSequenceInstances, Wolfram Language function,


Wolfram Research (2020), BioSequenceInstances, Wolfram Language function,


@misc{reference.wolfram_2020_biosequenceinstances, author="Wolfram Research", title="{BioSequenceInstances}", year="2020", howpublished="\url{}", note=[Accessed: 15-January-2021 ]}


@online{reference.wolfram_2020_biosequenceinstances, organization={Wolfram Research}, title={BioSequenceInstances}, year={2020}, url={}, note=[Accessed: 15-January-2021 ]}


Wolfram Language. 2020. "BioSequenceInstances." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2020). BioSequenceInstances. Wolfram Language & System Documentation Center. Retrieved from