Learn R Programming

GeoTcgaData (version 1.0.0)

diff_SNP_tcga: Do difference analysis of SNP data downloaded from TCGAbiolinks

Description

Do difference analysis of SNP data downloaded from TCGAbiolinks

Usage

diff_SNP_tcga(snpData, sampleType)

Arguments

snpData

data.frame of SNP data downloaded from TCGAbiolinks

sampleType

vector of sample group

Examples

Run this code
# NOT RUN {
library(TCGAbiolinks)
query <- GDCquery(project = "TCGA-ACC",
                  data.category = "Simple Nucleotide Variation",
                  data.type = "Masked Somatic Mutation",
                  workflow.type = "MuSE Variant Aggregation and Masking")

GDCdownload(query, method = "api", files.per.chunk = 5, directory = Your_Path)

data_snp <- GDCprepare(query = query, 
                   save = TRUE, 
                   directory =  "Your_Path") 
samples <- unique(data_snp$Tumor_Sample_Barcode)
sampleType <- sample(c("A","B"), length(samples), replace = TRUE)
names(sampleType) <- samples
pvalue <- diff_SNP_tcga(snpData = data_snp, sampleType = sampleType)
# }

Run the code above in your browser using DataLab