Learn R Programming

scMetaTraj (version 0.1.1)

scMetaTraj_transition_zone: Identify candidate transition zone along mPT

Description

Identify a candidate transition zone along mPT where the composition of metabolic subclusters changes most rapidly. Intended as a hypothesis-generating indicator.

Usage

scMetaTraj_transition_zone(mPT, cluster, n_bins = 30, top_frac = 0.2)

Value

Named numeric vector with xmin and xmax.

Arguments

mPT

Numeric vector of metabolic pseudotime.

cluster

Metabolic cluster labels.

n_bins

Integer. Number of bins along mPT.

top_frac

Fraction of bins with highest composition change to define zone.