find_pseudotime: Find Pseudotime

View source: R/Pseudotime.R

find_pseudotimeR Documentation

Find Pseudotime

Description

This function finds the pseudotime corresponding to a given sample point.

Usage

find_pseudotime(sample.point, pseudotime)

Arguments

sample.point

A numeric vector representing the sample point.

pseudotime

A matrix or data frame containing pseudotime values.

Value

The index of the pseudotime corresponding to the closest match to the given sample point.

Examples

sample.point <- c(0.5, 0.3, 0.7)
pseudotime <- matrix(c(0.1, 0.4, 0.8, 0.2, 0.3, 0.6), ncol = 3)
find_pseudotime(sample.point, pseudotime)


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.