Using tcga2stat in R is straightforward. Here are basic steps:
# Install the package install.packages("tcga2stat")
# Load the package library(tcga2stat)
# Download data for a specific cancer type, e.g., breast cancer (BRCA) brca_data <- getTCGA(disease="BRCA", data.type="RNASeq2")
# Explore the data head(brca_data)
This simple code snippet demonstrates how to download and preview RNA-Seq data for breast cancer. The package offers more advanced functionalities for filtering, normalizing, and visualizing the data.