Description Usage Arguments Value See Also Examples
Get subjects from given samples
1 | getSubjectFromSample(sampleId, patientId = NULL, na = FALSE, sampleInfo = NULL)
|
sampleId |
Character: sample identifiers |
patientId |
Character: subject identifiers to filter by (optional; if a matrix or data frame is given, its rownames will be used to infer the subject identifiers) |
na |
Boolean: return |
sampleInfo |
Data frame or matrix: sample information containing the sample identifiers as rownames and a column named "Subject ID" with the respective subject identifiers |
Character: subject identifiers corresponding to the given samples
Other functions for data grouping:
createGroupByAttribute()
,
getGeneList()
,
getSampleFromSubject()
,
groupPerElem()
,
plotGroupIndependence()
,
testGroupIndependence()
1 2 3 4 5 6 | samples <- paste0("GTEX-", c("ABC", "DEF", "GHI", "JKL", "MNO"), "-sample")
getSubjectFromSample(samples)
# Filter returned samples based on available subjects
subjects <- paste0("GTEX-", c("DEF", "MNO"))
getSubjectFromSample(samples, subjects)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.