calculate_rds: calculate_rds

View source: R/rds.R

calculate_rdsR Documentation

calculate_rds

Description

Calculates the root diversity scores as the probability that a tree where l metastases form a cluster (have one root) exists by chance as defined by Equation (2).

Usage

calculate_rds(k, m, l, use_gmp = T)

Arguments

k

number of primary tumor region samples

m

total number of metastases samples

l

number of metastases that actually cluster together

use_gmp

Use gmp R package to calculate RDS for large trees. Required for trees with more around 30 tips (default=T)

Value

probabilility that a cluster of size l arises by chance


agorelick/rds documentation built on May 31, 2024, 3:35 a.m.