Learn R Programming

UCSCXenaTools (version 0.2.4)

samples: get samples of XenaHub object according to by and how action arguments

Description

One is often interested in identifying samples or features present in each data set, or shared by all data sets, or present in any of several data sets. Identifying these samples, including samples in arbitrarily chosen data sets.

Usage

samples(x, i = character(), by = c("hosts", "cohorts", "datasets"),
  how = c("each", "any", "all"))

Arguments

x

a XenaHub object

i

a empty character

by

a character specify by action

how

a character specify how action

Value

a list include samples

Examples

Run this code
# NOT RUN {
xe = XenaHub(cohorts = "Cancer Cell Line Encyclopedia (CCLE)")
# samples in each dataset, first host
x = samples(xe, by="datasets", how="each")[[1]]
lengths(x)        # data sets in ccle cohort on first (only) host
# }

Run the code above in your browser using DataLab