View source: R/tabToSNVcatalogue.R
tabToSNVcatalogue | R Documentation |
Convert a data frame containing SNV, possibly loaded from a tab seperated text file, to SNV 96 channel trinuclotide context catalogue. The data frame should containt the SNV of a single sample, and the following minimal columns: chr, position, REF, ALT.
tabToSNVcatalogue(subs, genome.v = "hg19")
subs |
data frame with subs from a single sample and the following minimal columns: chr, position, REF, ALT. |
genome.v |
either "hg38" (will load BSgenome.Hsapiens.NCBI.GRCh38), "hg19" (will load BSgenome.Hsapiens.UCSC.hg19), mm10 (will load BSgenome.Mmusculus.UCSC.mm10::BSgenome.Mmusculus.UCSC.mm10) or canFam3 (will load BSgenome.Cfamiliaris.UCSC.canFam3::BSgenome.Cfamiliaris.UCSC.canFam3) |
returns the SNV catalogue for the given sample
subs <- read.table("subs.tab",sep="\t",header = TRUE,check.names = FALSE,stringsAsFactors = FALSE)
res <- tabToSNVcatalogue(subs,genome.v = "hg19")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.