Learn R Programming

GeoTcgaData (version 1.1.1.992)

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
if (FALSE) {
library(TCGAbiolinks)
query <- GDCquery(
    project = "TCGA-CHOL", 
    data.category = "Simple Nucleotide Variation", 
    access = "open", 
    legacy = FALSE, 
    data.type = "Masked Somatic Mutation", 
    workflow.type = "Aliquot Ensemble Somatic Variant Merging and Masking"
)
GDCdownload(query)
data_snp <- GDCprepare(query)
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