Learn R Programming

RepertoiR

Visualization platform for T cell receptor repertoire analysis output results. It includes comparison of sequence frequency among samples, network of similar sequences and convergent recombination source between species. Currently repertoire analysis is in early stage of development and requires new approaches for repertoire data examination and assessment as we intend to develop.

Installation

You can install the development version of RepertoiR from version from GitHub with:

# install.packages("devtools")
devtools::install_github("systemsbiomed/RepertoiR")

Quick demo

Creating network graph of TCR repertoire’s clonotypes:

library(RepertoiR)

aa <- c(
  "G", "A", "V", "L", "I", "P", "F", "Y", "W", "S",
  "T", "N", "Q", "C", "M", "D", "E", "H", "K", "R"
)
data <- matrix(rexp(1 / 2, n = 1000), ncol = 4)
cons <- sample(aa, 10)
aavec <- c()

while (length(aavec) < nrow(data)) {
  aaseq <- cons
  index <- sample(length(aaseq), sample(length(aaseq) / 3, 1))
  aaseq[index] <- sample(aa, length(index), replace = TRUE)
  aaseq <- paste0(aaseq, collapse = "")
  aavec <- unique(append(aavec, aaseq))
}

rownames(data) <- aavec
colnames(data) <- LETTERS[1:ncol(data)]

In that case, don’t forget to commit and push the resulting figure files, so they display on GitHub and CRAN.

Copy Link

Version

Install

install.packages('RepertoiR')

Monthly Downloads

184

Version

0.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Ido Hasson

Last Published

October 25th, 2021

Functions in RepertoiR (0.0.1)

cr_source.default

Visualized for CR Sources
sunflower.default

Default graph
cr_source

Visualized for CR Sources
sunflower

Sunflower repertoire graph
network

Sequences distance network
network.default

Sequences distance network