View source: R/BioTIP_update_04202022.R
getCTS | R Documentation |
getCTS obtains the identified BioTiP and its length based off of MCI scores.
getCTS(maxMCI, maxMCIms)
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 |
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 |
A character vector, in which the elements are the unique IDs of the network nodes of the BioTiP.
Antonio Feliciano y Pleyto and Zhezhen Wang zhezhen@uchicago.edu
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.