Class Promoter

Represents a gene promoter containing multiple regulatory elements. A promoter is a DNA region that initiates transcription of a gene.

Constructors

  • Creates a new Promoter.

    Parameters

    • transcriptionStartSite: number

      Position of TSS in genomic coordinates

    • elements: PromoterElement[]

      Array of PromoterElements that define this promoter

    • Optional name: string

      Optional name for this promoter

    Returns Promoter

    Example

    const promoter = new Promoter(
    1000, // TSS at position 1000
    [tataBox, initiatorElement],
    "beta-globin-promoter"
    );

Properties

elements: readonly PromoterElement[]

Array of promoter elements that comprise this promoter

name?: string

Optional name/identifier for this promoter

transcriptionStartSite: number

Position of the transcription start site (TSS) in the genomic sequence

Methods

  • Gets the genomic position of a promoter element.

    Parameters

    Returns number

    Genomic position of the element (TSS + element.position)

  • Gets all elements of a specific type from this promoter.

    Parameters

    • elementName: string

      Name of the element type to find (e.g., "TATA", "Inr")

    Returns PromoterElement[]

    Array of matching PromoterElements

  • Calculates a strength score for this promoter based on its elements. This is a simplified scoring system - real promoter strength depends on many factors.

    Returns number

    Numeric score representing promoter strength (higher = stronger)

  • Checks if this promoter contains a specific type of element.

    Parameters

    • elementName: string

      Name of the element type to check for

    Returns boolean

    true if promoter contains at least one element of this type

  • Gets a string representation of this promoter.

    Returns string

    String describing the promoter and its elements