knitr::opts_chunk$set( collapse = TRUE, warning=FALSE, message=FALSE, comment = "#>" )
For a more intuitive interpretation of the results, MMRFVariant provides a graphical or tabular representation of the outputs. The use-case diagram shown below provides an overview of the MMRFVariant functionalities and the different scenarios that can be performed.
knitr::include_graphics("imgs/UseCase.png")
library(MMRFVariant) library(dplyr) library(DT) library(ggplot2) library(stringr) library(ggpubr) library(survminer) library(survival) library(formattable)
devtools::load_all(".")
library(dplyr) library(DT) library(ggplot2) library(stringr) library(ggpubr)
To install this package, start R (version "4.0.0") and enter:
devtools::install_github("marziasettino/MMRFVariant", build_vignettes = TRUE) library(MMRFVariant)
The following Figure shows the MMRFVariant functions and their input/outp. The first two columns show respectively the category (Column ”Cat.”) to which the function belongs and the name of the function. The two latter columns show the input and output of the functions. If the input is labelled with ∗ the input is not mandatory. The labels (a),(b),(c) at the column ”Input” refer to the datasets described in the following Section MMRFVariant Datasets
knitr::include_graphics("imgs/Functions.png")
MMRF-CoMMpass data can be retrieved directly from [MMRF-Commpass Researcher Gateway](https://research.themmrf.org/). They can be downloaded and imported as a dataframe into R environment.
MMRFVariant deals with the IA15 dataset (GRCh37 reference genome), which represents the fifteen release of the complete baseline, available in a flat file format (i.e. csv/txt) at the MMRF-RG.
With regard to the structure of IA15, it incorporates the following datasets:
MMRFVariant requires a local copy of the MMRFCoMMpass datasets that can be downloaded from the MMRF-RG by the registered users. Once the datasets have been downloaded, they can be saved locally in a tab-delimited text file format for importing them into the R environment as described below.
patient <- read.csv("~/MMRF_CoMMpass_IA15_PER_PATIENT") trt <- read.csv("~/MMRF_CoMMpass_IA15_STAND_ALONE_TRTRESP") variant.ann <- read.csv("~/MMRF_CoMMpass_IA15a_All_Canonical_Variants")
In order to test the MMRFVariant functions (without fetch MMRF-CoMMpass data from MMRF-RG), three fictitious datasets are provided in the "data" directory:
-
-
-
They replicate the original datasets format including only some fileds with respect to MMRF-CoMMpass datasets (.csv files) downloaded from MMRF-COMMPASS Research Gateway.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.