View source: R/relabelMutPositions.R
relabelMutPositions | R Documentation |
Relabel the positions of mutations in the designated ID
relabelMutPositions(se, conversionTable, mutNameDelimiter = ".")
se |
SummarizedExperiment object, with row names of the form
XX.AA.NNN, where XX is the name of the reference sequence, AA is the
position of the mutated codon, and NNN is the mutated codon or amino
acid. . is the delimiter, to be specified in the
|
conversionTable |
|
mutNameDelimiter |
The delimiter used in the mutation name (. above). |
A SummarizedExperiment object with modified row names.
Charlotte Soneson
x <- readRDS(system.file("extdata", "GSE102901_cis_se.rds",
package = "mutscan"))
conversionTable <- data.frame(seqname = "f", position = 0:32)
conversionTable$name = paste0((conversionTable$position - 1) %/% 7 + 1,
c("", rep(letters[1:7], 6))[1:33])
out <- relabelMutPositions(x, conversionTable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.