sampleTypesTable: Get an overview of the samples available in the workspace

View source: R/clinical.R

sampleTypesTableR Documentation

Get an overview of the samples available in the workspace

Description

The function provides an overview of samples from the avtables("sample") table for the current workspace. Along with the sample codes and frequencies, the output provides a description for each code and the short letter codes.

Usage

sampleTypesTable(
  workspace = terraTCGAworkspace(),
  namespace = .DEFAULT_NAMESPACE,
  tablename = .DEFAULT_TABLENAME,
  verbose = TRUE
)

Arguments

workspace

character(1) The Terra Data Resources workspace from which to pull TCGA data (default: see terraTCGAworkspace()). This is set to a package-wide option.

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: TRUE).

Value

A tibble of sample codes and frequency along with their definition and short letter code

Examples

if (AnVIL::gcloud_exists())
  sampleTypesTable(workspace = "TCGA_COAD_OpenAccess_V1-0_DATA")


LiNk-NY/terraTCGAdata documentation built on May 1, 2024, 10:43 p.m.