SNP_QC | R Documentation |
Do quality control of SNP data downloaded from TCGAbiolinks
SNP_QC(
snpData,
geon = 0.02,
mind = 0.02,
maf = 0.05,
hwe = 1e-06,
miss = "NoCall"
)
snpData |
data.frame of SNP data downloaded from TCGAbiolinks |
geon |
filters out all variants with missing call rates exceeding the provided value (default 0.02) to be removed |
mind |
filters out all samples with missing call rates exceeding the provided value (default 0.02) to be removed |
maf |
filters out all variants with minor allele frequency below the provided threshold |
hwe |
filters out all variants which have Hardy-Weinberg equilibrium exact test p-value below the provided threshold |
miss |
character of miss value |
data.frame
# use demo data
snpDf <- matrix(sample(c("AA", "Aa", "aa"), 100, replace = TRUE), 10, 10)
snpDf <- as.data.frame(snpDf)
sampleGroup <- sample(c("A", "B"), 10, replace = TRUE)
result <- SNP_QC(snpDf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.