cutGroups | R Documentation |
split survival data into High and Low groups based on cutoff value and scores/expression values
cutGroups(os, out)
os |
tibble with columns: samples, OS values, and Vital.Status |
out |
output from mCut or mSet. It contains the cutoff threshold and either GSEA scores ("scores") or Gene Expression ("geneExp") values for each sample |
the os"group" column with samples split into High and Low groups
os = dplyr::tibble(sample = letters[1:10], OS = 10:19, Vital.Status = c(rep("Alive",8),rep("Dead",2))) out = list("cutoff" = 0.44, "scores" = rnorm(10)) os["group"] = cut(os,out) os
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.