tabToSNVcatalogue: TAB to SNV Catalogue

Description Usage Arguments Value Examples

View source: R/tabToSNVcatalogue.R

Description

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.

Usage

1
tabToSNVcatalogue(subs, genome.v = "hg19")

Arguments

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)

Value

returns the SNV catalogue for the given sample

Examples

1
2
subs <- read.table("subs.tab",sep="\t",header = TRUE,check.names = FALSE,stringsAsFactors = FALSE)
res <- tabToSNVcatalogue(subs,genome.v = "hg19")

pdiakumis/hrdetect documentation built on May 17, 2020, 5:30 p.m.