load_cls: Load phenotype file

View source: R/load_cls.R

load_clsR Documentation

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:

pheotype

Pheotype of samples

value

A vector with encoded value of pheotypes. If there is k pheotypes, it takes values 0, 1, \ldots, k-1.

Examples

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

## Not run: 
filename <- "P53.cls"
label <- load_cls(filename)

## End(Not run)

dslice documentation built on Nov. 22, 2023, 9:06 a.m.