|
a |
|
b/man/samples.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/api_higher.R |
|
|
3 |
\name{samples} |
|
|
4 |
\alias{samples} |
|
|
5 |
\title{Get Samples of a XenaHub object according to 'by' and 'how' action arguments} |
|
|
6 |
\usage{ |
|
|
7 |
samples( |
|
|
8 |
x, |
|
|
9 |
i = character(), |
|
|
10 |
by = c("hosts", "cohorts", "datasets"), |
|
|
11 |
how = c("each", "any", "all") |
|
|
12 |
) |
|
|
13 |
} |
|
|
14 |
\arguments{ |
|
|
15 |
\item{x}{a \link{XenaHub} object} |
|
|
16 |
|
|
|
17 |
\item{i}{default is a empty character, it is used to specify |
|
|
18 |
the host, cohort or dataset by \code{by} option otherwise |
|
|
19 |
info will be automatically extracted by code} |
|
|
20 |
|
|
|
21 |
\item{by}{a character specify \code{by} action} |
|
|
22 |
|
|
|
23 |
\item{how}{a character specify \code{how} action} |
|
|
24 |
} |
|
|
25 |
\value{ |
|
|
26 |
a list include samples |
|
|
27 |
} |
|
|
28 |
\description{ |
|
|
29 |
One is often interested in identifying samples or features present in each data set, |
|
|
30 |
or shared by all data sets, or present in any of several data sets. |
|
|
31 |
Identifying these samples, including samples in arbitrarily chosen data sets. |
|
|
32 |
} |
|
|
33 |
\examples{ |
|
|
34 |
\dontrun{ |
|
|
35 |
xe = XenaHub(cohorts = "Cancer Cell Line Encyclopedia (CCLE)") |
|
|
36 |
# samples in each dataset, first host |
|
|
37 |
x = samples(xe, by="datasets", how="each")[[1]] |
|
|
38 |
lengths(x) # data sets in ccle cohort on first (only) host |
|
|
39 |
} |
|
|
40 |
} |