Class PromoterElement

Represents a single promoter element with its pattern, name, and position relative to TSS. Promoter elements are regulatory DNA sequences that help initiate transcription.

Constructors

Properties

Methods

Constructors

  • Creates a new PromoterElement.

    Parameters

    • name: string

      Name of the promoter element (e.g., "TATA", "Inr", "DPE")

    • pattern: NucleotidePattern

      The NucleotidePattern that defines this element

    • position: number

      Position relative to TSS (negative for upstream, positive for downstream)

    Returns PromoterElement

    Example

    const tataBox = new PromoterElement(
    "TATA",
    new NucleotidePattern("TATAWAR"), // W = A or T, R = A or G
    -25 // Typically 25bp upstream of TSS
    );

Properties

name: string

Human-readable name for this promoter element

The nucleotide pattern that defines this promoter element

position: number

Position relative to transcription start site (TSS), typically negative for upstream elements

Methods

  • Checks if two PromoterElements are equivalent.

    Parameters

    Returns boolean

    true if name, pattern, and position are identical

  • Gets a string representation of this promoter element.

    Returns string

    String in format "name@position"