knitr::opts_chunk$set(
  collapse = TRUE,
  warning=FALSE, 
  message=FALSE,
  comment = "#>"
)

MMRFVariant Use-Case

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")

Required libraries

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)

Download and Install

To install this package, start R (version "4.0.0") and enter:

devtools::install_github("marziasettino/MMRFVariant", build_vignettes = TRUE)
library(MMRFVariant)

MMRFVariant Functions

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")

MMRFVariant Datasets

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:

- **MMRF_CoMMpass_IA15_PER_PATIENT**: contains patient-clinical data such as demographic (e.g. age, gender, race, ethnicity) and cytogenetics (e.g. FISH results) information beside of the ISS disease stage for each patient;
- **MMRF_CoMMpass_IA15_STAND_ALONE_TRTRESP**: contains the treatment-response information for each patient;
- **MMRF_CoMMpass_IA15a_All_Canonical_Variants**: contains the variants annotations including the impact and effect beside of the SIFT and Polyphen2 scores and the dbSNP Identifiers (IDs).

Fetching and importing MMRF-COMMPASS 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")


Testing MMRFVariant functions

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.

Annotated variant dataframe
wzxhzdk:8
Patient dataframe
wzxhzdk:9
Treatment dataframe
wzxhzdk:10
# Question and issues
Please use [Github issues](https://github.com/marziasettino/MMRFVariant/issues) if you want to file bug reports or feature requests. # Session Information ****** wzxhzdk:11

marziasettino/MMRFVariant documentation built on March 28, 2023, 3:16 p.m.