Identify a candidate transition zone along mPT where the composition of metabolic subclusters changes most rapidly. Intended as a hypothesis-generating indicator.
scMetaTraj_transition_zone(mPT, cluster, n_bins = 30, top_frac = 0.2)Named numeric vector with xmin and xmax.
Numeric vector of metabolic pseudotime.
Metabolic cluster labels.
Integer. Number of bins along mPT.
Fraction of bins with highest composition change to define zone.