Learn R Programming

⚠️There's a newer version (1.1.0) of this package.Take me there.

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 with the execution of the following command:

# commands for installing the package from github
devtools::install_github("Aitorzan3/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

166

Version

1.0.0

License

GPL (>= 3)

Maintainer

Aitor Sánchez-Ferrera

Last Published

September 4th, 2024

Functions in GeRnika (1.0.0)

phylotree_to_B

Get B matrix from Phylotree object.
find_common_subtrees

Find the set of common subtrees between two phylogenetic trees
plot_phylotree

Plot a phylogenetic tree
plot_p

Plot a phylogenetic tree with proportional node sizes and colors.
plot

Plot a Phylotree object.
phylotree_to_tree

Extract tree from Phylotree object.
place_clones_space

Create a model for the spatial distribution of the clones in a tumor
plot_proportions

Plot a phylogenetic tree with proportional node sizes and colors
create_U

Calculate tumor clone frequencies in samples
combine_trees

Get consensus tree between two phylogenetic trees
Node-class

S4 class to represent a node in a phylogenetic tree.
add_noise

Add noise to the VAF values in an F matrix
create_B

Create tumor phylogenetic tree topology
calc_clone_proportions

Calculate clone proportions for a tumor
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.
B_to_phylotree

Create a Phylotree object from a B matrix.
create_instance

Create a tumor phylogenetic tree instance
create_phylotree

Create a Phylotree object
get_parents

Get parent nodes in a phylogenetic tree.
.distribute_freqs

Distribute frequencies among clone and its children clones
get_clones

Retrieve the clone indices for a set of gene indices
get_genes

Retrieve the gene indices for the clones in a phylogenetic tree
equals

Check if two phylogenetic trees are equal
hyperparameters

Hyperparameters for the methods of GeRnika
palettes

Palettes for the methods of GeRnika