Learn R Programming

myTAI (version 2.3.4)

ec_score: Early Conservation Score Function

Description

Compute the early conservation score by comparing mid and late developmental stages to early stages.

Usage

ec_score(txi, modules)

Value

A numeric value representing the early conservation score

Arguments

txi

Numeric vector of transcriptomic index values

modules

A named list with elements 'early', 'mid', and 'late' containing stage indices for each developmental module

Details

The score is computed as the minimum of: - D1: mean(mid) - mean(early) - D2: mean(late) - mean(early)

Higher scores indicate stronger early conservation patterns. # Compute early conservation score # modules <- list(early = 1:3, mid = 4:6, late = 7:9) # score <- ec_score(txi_values, modules)