项目作者: BIMIB-DISCo

项目描述 :
A tool to visualize LACE output.
高级语言: JavaScript
项目地址: git://github.com/BIMIB-DISCo/LACEView.git
创建时间: 2020-05-26T08:14:48Z
项目社区:https://github.com/BIMIB-DISCo/LACEView

开源协议:

下载


LACE View

The LACE View tool is a visualization application to explore the LACE
output.

LACEview depends upon LACE tool, since it is a visualizer for LACE.

LACE installation

Firstly install R (tested on version 4.0)

Inside an R session execute the following commands.

  1. install.packages("devtools", dependencies = TRUE)
  2. install.packages("igraph", dependencies = TRUE)
  3. install.packages("RColorBrewer", dependencies = TRUE)
  4. install.packages("Rfast", dependencies = TRUE)

Now LACE can be installed as follows:

  1. # install CIMLR from Github
  2. library("devtools")
  3. install_github("BIMIB-DISCo/LACE", ref = "master")
  4. # load LACE library
  5. library("LACE")

LACEview Installation

  1. install_github("BIMIB-DISCo/LACEView")

Once both LACE and LACEview are installed. Its time to run the LACE vignette \
in the following snippet

  1. library("LACE")
  2. data(longitudinal_sc_variants)
  3. names(longitudinal_sc_variants)
  4. lik_weights = c(0.2308772,0.2554386,0.2701754,0.2435088)
  5. alpha = list()
  6. alpha[[1]] = c(0.02,0.01,0.01,0.01)
  7. alpha[[2]] = c(0.10,0.05,0.05,0.05)
  8. beta = list()
  9. beta[[1]] = c(0.10,0.05,0.05,0.05)
  10. beta[[2]] = c(0.10,0.05,0.05,0.05)
  11. inference = LACE(D = longitudinal_sc_variants,
  12. lik_w = lik_weights,
  13. alpha = alpha,
  14. beta = beta,
  15. keep_equivalent = FALSE,
  16. num_rs = 5,
  17. num_iter = 10,
  18. n_try_bs = 5,
  19. num_processes = NA,
  20. seed = 12345,
  21. verbose = FALSE)
  22. clone_labels = c("ARPC2","PRAME","HNRNPC","COL1A2","RPL5","CCT8")

instructions to RUN LACEview

  1. library(LACEview)
  2. LACEview(inference,clone_labels)

The default viewer is too small for LACEview kindly use the enlarged viewer
by clicking on the magnifying glass while using Rstudio.

test2

Instructions to Run Other Datasets

The LACE-UTILITIES repo contains two extra datasets with ready made inferences to be plotted using LACEview.
[LACE Utils(https://github.com/BIMIB-DISCo/LACE-UTILITIES)

  1. load("~/PATH/TO/INFERENCE/inference.RData")
  2. LACEview(inference,c())