load_cls: Load phenotype file

Description Usage Arguments Value Examples

View source: R/load_cls.R

Description

Load phenotype file from .cls file

Usage

1

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, …, k-1.

Examples

1
2
3
4
5
6
7
8
# 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 May 29, 2017, 8:03 p.m.