Learn R Programming

dslice (version 1.1.3)

load_cls: Load phenotype file

Description

Load phenotype file from .cls file

Usage

load_cls(file)

Arguments

file
Name of .cls file which contains phenotypes of samples, separared by spaces.

Value

  • A list with components:
  • pheotypePheotype of samples
  • valueA vector with encoded value of pheotypes. If there is k pheotypes, it takes values $0, 1, \ldots, k-1$.

Examples

Run this code
# Pheotype files are available after registration at Broad institute GSEA website
# http://www.broadinstitute.org/gsea

filename <- "P53.cls"
label <- load_cls(filename)

Run the code above in your browser using DataLab