View source: R/terraTCGAdata.R
terraTCGAdata | R Documentation |
Workspaces on Terra come pre-loaded with TCGA Data. The examples in the documentation correspond to the TCGA_COAD_OpenAccess_V1 workspace that can be found on app.terra.bio.
terraTCGAdata(
clinicalName,
assays,
participants = TRUE,
sampleCode = NULL,
split = FALSE,
workspace = terraTCGAworkspace(),
namespace = .DEFAULT_NAMESPACE,
tablename = .DEFAULT_TABLENAME,
verbose = TRUE,
sampleIdx = TRUE
)
clinicalName |
character(1) The column name taken from
|
assays |
character() A character vector of assay names taken from
|
participants |
logical(1) Whether to merge the participant table
from |
sampleCode |
character() A character vector of sample codes from
|
split |
logical(1L) Whether or not to split the |
workspace |
character(1) The Terra Data Resources workspace from which
to pull TCGA data (default: see |
namespace |
character(1) The Terra Workspace Namespace that defaults to "broad-firecloud-tcga" and rarely needs to be changed. |
tablename |
The Terra data model table from which to extract the clinical data (default: "sample") |
verbose |
logical(1) Whether to output additional information regarding
the workspace and namespace (default: |
sampleIdx |
numeric() index or TRUE. Specify an index for subsetting the
assay data. This argument is mainly used for example and vignette
purposes. To use all the data, use the default value (default: |
A MultiAssayExperiment
object with n number of assays corresponding
to the assays
argument.
if (
AnVILGCP::gcloud_exists() &&
identical(AnVILBase::avplatform_namespace(), "AnVILGCP")
)
terraTCGAdata(
clinicalName = "clin__bio__nationwidechildrens_org__Level_1__biospecimen__clin",
assays = c("protein_exp__mda_rppa_core__mdanderson_org__Level_3__protein_normalization__data",
"rnaseqv2__illuminahiseq_rnaseqv2__unc_edu__Level_3__RSEM_genes_normalized__data"),
workspace = "TCGA_COAD_OpenAccess_V1-0_DATA",
sampleCode = NULL,
sampleIdx = 1:4,
split = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.