Learn R Programming

UCSCXenaTools (version 0.2.4)

XenaFilter: Filter a XenaHub Object

Description

Major function of UCSCXenatools. It is used to filter XenaHub object according to cohorts, datasets. All datasets can be found at <https://xenabrowser.net/datapages/>. Note, the change for filtering cohorts and datasets are independent.

Usage

XenaFilter(x, filterCohorts = NULL, filterDatasets = NULL,
  ignore.case = TRUE)

Arguments

x

a XenaHub object

filterCohorts

default is NULL. A character used to filter cohorts, regular expression is supported.

filterDatasets

default is NULL. A character used to filter datasets, regular expression is supported.

ignore.case

if FALSE, the pattern matching is case sensitive and if TRUE, case is ignored during matching.

Value

a XenaHub object

Examples

Run this code
# NOT RUN {
# operate TCGA datasets
xe = XenaGenerate(subset = XenaHostNames == "TCGA")
xe
# get all names of clinical data
xe2 = XenaFilter(xe, filterDatasets = "clinical")
datasets(xe2)
# }

Run the code above in your browser using DataLab