In this vignette it is shown the analysis performed on a single cell RNA seq dataset from a time-course of iPS reprogramming. The data are from day 10, day 12, day 14, day 16 and day 18 from Schiebinger et al. 2019. Below the transition matrices between time points t and t+1 are loaded. Each matrix is the output of and was built starting from function from pyhton package . See ? for more info.
load(system.file("extdata", "cluster_label_example.Rda", package = "WOTPLY"))
#load(system.file("extdata", "time_label_example.Rda", package = "WOTPLY"))
load(system.file("extdata", "example_day_10_12.Rda", package = "WOTPLY"))
load(system.file("extdata", "example_day_12_14.Rda", package = "WOTPLY"))
load(system.file("extdata", "example_day_14_16.Rda", package = "WOTPLY"))
load(system.file("extdata", "example_day_16_18.Rda", package = "WOTPLY"))
list_transition_matrices_example <- list(example_day_10_12,example_day_12_14,example_day_14_16,example_day_16_18)
selected_stages <- c("IPS","Trophoblast","Epithelial","STROMAL","NEURAL")
legend_time_example <- c("day_10","day_12","day_14","day_16","day_18")
customize_color <- WOTPLY:::gg_color_hue(length(levels(factor(cluster_label_example))))
The output of WOTPLY function shows the connections between from the latest time point and the clusters from previous time points. The number of columns is equal to the numbers of time points. In each column, the cluster of the corresponding time point is shown as network node. The weight of the links between clusters at time points t and t+1 reflect the weight of the transition probabilities from . It is possible to change the maximum number of links to select between clusters at time t and clusters at time t+1. Links are sorted according to the weight and then only the are kept. If (default), all the links are kept.
#png("/Users/gabriele.lubatti/Desktop/Phd/Embryo_Organoids/wot_publsihed_data/input_wot/WOTPLY_1.png")
WOTPLY(list_transition_matrices_example, selected_stages, cluster_label_example, legend_time_example, customize_color, top_link = NULL)
#> Registered S3 method overwritten by 'GGally':
#> method from
#> +.gg ggplot2
#png("/Users/gabriele.lubatti/Desktop/Phd/Embryo_Organoids/wot_publsihed_data/input_wot/WOTPLY_2.png")
WOTPLY(list_transition_matrices_example, selected_stages, cluster_label_example, legend_time_example,customize_color, top_link = 3)
#> Warning in WOTPLY(list_transition_matrices_example, selected_stages,
#> cluster_label_example, : From time day_10 to day_12 is only possible to select
#> less than 3 connections
utils::sessionInfo()
#> R version 4.4.2 (2024-10-31)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.1 LTS
#>
#> Matrix products: default
#> BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
#> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
#>
#> locale:
#> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
#> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=C
#> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
#> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
#> [9] LC_ADDRESS=C LC_TELEPHONE=C
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
#>
#> time zone: Etc/UTC
#> tzcode source: system (glibc)
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] WOTPLY_0.1.0 rmarkdown_2.29
#>
#> loaded via a namespace (and not attached):
#> [1] gtable_0.3.6 jsonlite_1.8.9 dplyr_1.1.4
#> [4] compiler_4.4.2 Rcpp_1.0.13-1 tidyselect_1.2.1
#> [7] ggstats_0.7.0 tidyr_1.3.1 jquerylib_0.1.4
#> [10] scales_1.3.0 yaml_2.3.10 fastmap_1.2.0
#> [13] lattice_0.22-6 coda_0.19-4.1 GGally_2.2.1
#> [16] plyr_1.8.9 ggplot2_3.5.1 R6_2.5.1
#> [19] generics_0.1.3 knitr_1.49 tibble_3.2.1
#> [22] statnet.common_4.10.0 maketools_1.3.1 munsell_0.5.1
#> [25] bslib_0.8.0 pillar_1.9.0 RColorBrewer_1.1-3
#> [28] rlang_1.1.4 utf8_1.2.4 cachem_1.1.0
#> [31] xfun_0.49 sass_0.4.9 sys_3.4.3
#> [34] cli_3.6.3 withr_3.0.2 magrittr_2.0.3
#> [37] network_1.18.2 digest_0.6.37 grid_4.4.2
#> [40] lifecycle_1.0.4 vctrs_0.6.5 sna_2.8
#> [43] evaluate_1.0.1 glue_1.8.0 farver_2.1.2
#> [46] buildtools_1.0.0 fansi_1.0.6 colorspace_2.1-1
#> [49] purrr_1.0.2 tools_4.4.2 pkgconfig_2.0.3
#> [52] htmltools_0.5.8.1