Learn R Programming

GeRnika is an open-source R package that is capable of simulating, visualizing and comparing tumor evolution data by using simple commands. This aims at providing a tool to help researchers to easily simulate tumor clonal data and analyze the results of their approaches for studying the composition and the evolutionary history of tumors.

Installation

GeRnika may be easily installed from CRAN with the execution of the following command:

# commands for installing the package from github
install.packages("GeRnika")

Note that in order to install the vignettes together with the package, it is necessary to attach the packages “rmarkdown”, “knitcitations”, “knitr” and “ggpubr” to your namespace. If you have not installed them yet, you can do it by using the following command:

# commands for installing the package together with its vignettes from github
install.packages(c("rmarkdown", "knitcitations", "knitr", "ggpubr"))

Once you have done that, you may use the following instruction to install de vignettes of GeRnika:

# commands for installing the package together with its vignettes from github
devtools::install_github("Aitorzan3/GeRnika", build_vignettes = TRUE)

Once the package has been installed, the namespace of GeRnika may be loaded by using

library(GeRnika)

This produces a short report about the versions of the packages that are used by GeRnika, providing information about any conflict related to its dependencies.

Documentation

To view documentation for the version of this package installed in your system, start R and enter:

browseVignettes("GeRnika")

Design principles

Regarding the principles related to the design of GeRnika, this has been implemented in order to be fundamentally intuitive and easy to use. This is achieved by offering accesible methods for simulating and analyzing tumor phylogenies by using simple commands, all in one single package.

Copy Link

Version

Install

install.packages('GeRnika')

Monthly Downloads

220

Version

1.1.0

License

GPL (>= 3)

Maintainer

Aitor Sánchez-Ferrera

Last Published

March 27th, 2025

Functions in GeRnika (1.1.0)

equals

Check if two phylogenetic trees are equal
find_common_subtrees

Find the set of common subtrees between two phylogenetic trees
create_F

Calculate the variant allele frequency (VAF) values in a set of samples
B_mats

A set of 10 trios of B matrices for experimenting with the methods of GeRnika
Phylotree-class

S4 class to represent phylogenetic trees.
add_noise

Add noise to the VAF values in an F matrix
create_instance

Create a tumor phylogenetic tree instance
combine_trees

Get consensus tree between two phylogenetic trees
create_U

Calculate tumor clone frequencies in samples
B_to_phylotree

Create a Phylotree object from a B matrix.
plot_proportions

Plot a phylogenetic tree with proportional node sizes and colors
create_phylotree

Create a Phylotree object
palettes

Palettes for the methods of GeRnika
create_B

Create tumor phylogenetic tree topology
plot

Plot a Phylotree object.