View source: R/s03_all_functions.R
attachMutType | R Documentation |
Modify a data.frame carrying information about DNA mutation, and add a new column that stores formatted multi-nucleotide types.
attachMutType( mutData, ref_colName = "reference_allele", var_colName = "variant_allele", var2_colName = NULL, context_colName = "context", format = 1, mutType_dict = "alexa", mutType_colName = "mutType" )
mutData |
data.frame including information about DNA mutations |
ref_colName |
string, pointing to the column with information about the sequence of the "reference_allele" |
var_colName |
string, pointing to the column with information about the sequence of the "variant_allele" |
var2_colName |
string (optional), pointing to the column with information about the sequence of a second "variant_allele". Can be NULL |
context_colName |
string, pointing to the column with information about the nucleotidic "context" |
format |
integer, indicates the desired mutation type format: (1) N[R>V]N; (2) NN.R>V; (3) R.V[NRN][NVN] |
mutType_dict |
string, indicates the dictionary to be used for simplifying reverse-complement identical mutation types. It is recommended to use the standard dictionary from COSMIC, by selecting the default value, i.e. "alexa". |
mutType_colName |
string, column name of the new column added to the data.frame where mutTypes are stored. |
This function is part of the user-interface set of tools included in mutSignatures. This is an exported function.
a data.frame including a new column with mutation Types.
Damiano Fantini, damiano.fantini@gmail.com
More information and examples about mutational signature analysis can be found here:
Official website: http://www.mutsignatures.org
More info and examples about the mutSignatures R library: https://www.data-pulse.com/dev_site/mutsignatures/
Oncogene paper, Mutational Signatures Operative in Bladder Cancer: https://www.nature.com/articles/s41388-017-0099-6
A <- data.frame(REF = c("A", "T", "G"), VAR = c("G", "C", "C"), CTX = c("TAG", "GTG", "CGA"), stringsAsFactors = FALSE) mutSignatures::attachMutType(mutData = A, ref_colName = "REF", var_colName = "VAR", context_colName = "CTX")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.