Skip to main content
PrimerLab v0.1.6 introduces enhanced sequence handling for real-world genomic data.

IUPAC Ambiguous Codes

IUPAC ambiguous nucleotide codes are automatically detected and handled:
CodeMeaningBases
RpuRineA or G
YpYrimidineC or T
WWeakA or T
SStrongG or C
KKetoG or T
MaMinoA or C
Bnot AC, G, or T
Dnot CA, G, or T
Hnot GA, C, or T
Vnot TA, C, or G

Behavior

When IUPAC codes are detected:
  1. Warning displayed to user
  2. Codes converted to N (masked)
  3. Regions excluded from primer placement
$ primerlab stats sequence_with_iupac.fasta

📊 Sequence Statistics: TEST_IUPAC
=============================================
  Length:      500 bp
  GC Content:  48.20%
  ⚠️  IUPAC codes: ['R', 'Y'] (6 bp)
 Will be converted to N during design
=============================================

RNA Sequences

RNA sequences (containing Uracil) are automatically detected and converted:
DetectedConverted To
U (Uracil)T (Thymine)
u (lowercase)t (then uppercase)

Behavior

When RNA is detected:
  1. Warning displayed to user
  2. U → T conversion applied
  3. Design proceeds with DNA sequence
$ primerlab stats rna_sequence.fasta

📊 Sequence Statistics: TEST_RNA
=============================================
  Length:      300 bp
  ⚠️  RNA detected (contains U)
 Will be converted to T during design
=============================================

Sequence Validation

PrimerLab validates sequences before design:
CheckRequirementError Code
Length≥ 50 bpERR_SEQ_TOO_SHORT
CharactersA, T, G, C, N onlyERR_SEQ_INVALID_CHAR
Non-emptySequence providedERR_SEQ_EMPTY

Use primerlab stats

Always check your sequence before design:
primerlab stats input.fasta