getCTS: Obtain the identified BioTiP and its length

View source: R/BioTIP_update_04202022.R

getCTSR Documentation

Obtain the identified BioTiP and its length

Description

getCTS obtains the identified BioTiP and its length based off of MCI scores.

Usage

getCTS(maxMCI, maxMCIms)

Arguments

maxMCI

A numeric vector, whose length is the number of states. This parameter is the maximum MCI score of each state, and it can be obtained from the output of getMaxStats. Names need to be included in names of maxMCIms.

maxMCIms

A list of character vectors per state. The vectors are network nodes (e.g. transcript ids). This parameter is the second element of the output of the function getMaxMCImember.

Value

A character vector, in which the elements are the unique IDs of the network nodes of the BioTiP.

Author(s)

Antonio Feliciano y Pleyto and Zhezhen Wang zhezhen@uchicago.edu

Examples

maxMCI <- c(a = 2.56,  b = 8.52,  c = 2.36,  d = 4.81,  e = 5.26)
maxMCIms <- list(a = c("A100",  "A293",  "C403"),  
                 b = c("B853",  "D826",  "A406"),  
                 c = c("J198",  "D103",  "B105"),  
                 d = c("K529",  "D385",  "E358"),  
                 e = c("J019",  "U926",  "N824"))
identical(names(maxMCI),  names(maxMCIms))
# TRUE
getCTS(maxMCI,  maxMCIms)
# "Length: 3"
# "B853" "D826" "A406"


xyang2uchicago/BioTIP documentation built on June 30, 2024, 10:14 p.m.