# To install scGPS from github (Depending on the configuration of the local
# computer or HPC, possible custom C++ compilation may be required - see
# installation trouble-shootings below)
devtools::install_github("IMB-Computational-Genomics-Lab/scGPS")
# for C++ compilation trouble-shooting, manual download and installation can be
# done from github
git clone https://github.com/IMB-Computational-Genomics-Lab/scGPS
# then check in scGPS/src if any of the precompiled (e.g.  those with *.so and
# *.o) files exist and delete them before recompiling
# then with the scGPS as the R working directory, manually install and load
# using devtools functionality
# Install the package
devtools::install()
#load the package to the workspace 
library(scGPS)The purpose of this workflow is to solve the following task:
# load mixed population 1 (loaded from day_2_cardio_cell_sample dataset, 
# named it as day2)
library(scGPS)
day2 <- day_2_cardio_cell_sample
mixedpop1 <- new_scGPS_object(ExpressionMatrix = day2$dat2_counts,
    GeneMetadata = day2$dat2geneInfo, CellMetadata = day2$dat2_clusters)
# load mixed population 2 (loaded from day_5_cardio_cell_sample dataset, 
# named it as day5)
day5 <- day_5_cardio_cell_sample
mixedpop2 <- new_scGPS_object(ExpressionMatrix = day5$dat5_counts,
    GeneMetadata = day5$dat5geneInfo, CellMetadata = day5$dat5_clusters)
# select a subpopulation
c_selectID <- 1
# load gene list (this can be any lists of user selected genes)
genes <- training_gene_sample
genes <- genes$Merged_unique
# load cluster information 
cluster_mixedpop1 <- colData(mixedpop1)[,1]
cluster_mixedpop2 <- colData(mixedpop2)[,1]
#run training (running nboots = 3 here, but recommend to use nboots = 50-100)
LSOLDA_dat <- bootstrap_prediction(nboots = 3, mixedpop1 = mixedpop1, 
    mixedpop2 = mixedpop2, genes = genes, c_selectID  = c_selectID,
    listData = list(), cluster_mixedpop1 = cluster_mixedpop1, 
    cluster_mixedpop2 = cluster_mixedpop2, trainset_ratio = 0.7)
names(LSOLDA_dat)
#> [1] "Accuracy"          "ElasticNetGenes"   "Deviance"         
#> [4] "ElasticNetFit"     "LDAFit"            "predictor_S1"     
#> [7] "ElasticNetPredict" "LDAPredict"        "cell_results"# summary results LDA
sum_pred_lda <- summary_prediction_lda(LSOLDA_dat = LSOLDA_dat, nPredSubpop = 4)
# summary results Lasso to show the percent of cells
# classified as cells belonging 
sum_pred_lasso <- summary_prediction_lasso(LSOLDA_dat = LSOLDA_dat,
    nPredSubpop = 4)
# plot summary results 
plot_sum <-function(sum_dat){
    sum_dat_tf <- t(sum_dat)
    sum_dat_tf <- na.omit(sum_dat_tf)
    sum_dat_tf <- apply(sum_dat[, -ncol(sum_dat)],1,
        function(x){as.numeric(as.vector(x))})
    sum_dat$names <- gsub("ElasticNet for subpop","sp",  sum_dat$names )
    sum_dat$names <- gsub("in target mixedpop","in p",  sum_dat$names) 
    sum_dat$names <- gsub("LDA for subpop","sp",  sum_dat$names )
    sum_dat$names <- gsub("in target mixedpop","in p",  sum_dat$names)
    colnames(sum_dat_tf) <- sum_dat$names
    boxplot(sum_dat_tf, las=2)
}
plot_sum(sum_pred_lasso)# summary accuracy to check the model accuracy in the leave-out test set 
summary_accuracy(object = LSOLDA_dat)
#> [1] 60.55046 67.44186 62.32558
# summary maximum deviance explained by the model 
summary_deviance(object = LSOLDA_dat)
#> $allDeviance
#> [1] "7.53"  "5.19"  "11.88"
#> 
#> $DeviMax
#>          dat_DE$Dfd          Deviance           DEgenes
#> 1                 0              7.53    genes_cluster1
#> 2                 1              7.53    genes_cluster1
#> 3                 2              7.53    genes_cluster1
#> 4 remaining DEgenes remaining DEgenes remaining DEgenes
#> 
#> $LassoGenesMax
#> NULLThe purpose of this workflow is to solve the following task:
(skip this step if clusters are known)
# find clustering information in an expresion data using CORE
day5 <- day_5_cardio_cell_sample
cellnames <- colnames(day5$dat5_counts)
cluster <-day5$dat5_clusters
cellnames <-data.frame("Cluster"=cluster, "cellBarcodes" = cellnames)
mixedpop2 <-new_scGPS_object(ExpressionMatrix = day5$dat5_counts,
                    GeneMetadata = day5$dat5geneInfo, CellMetadata = cellnames)
CORE_cluster <- CORE_clustering(mixedpop2, remove_outlier = c(0), PCA=FALSE)
# to update the clustering information, users can ...
key_height <- CORE_cluster$optimalClust$KeyStats$Height
optimal_res <- CORE_cluster$optimalClust$OptimalRes
optimal_index = which(key_height == optimal_res)
clustering_after_outlier_removal <- unname(unlist(
 CORE_cluster$Cluster[[optimal_index]]))
corresponding_cells_after_outlier_removal <- CORE_cluster$cellsForClustering
original_cells_before_removal <- colData(mixedpop2)[,2]
corresponding_index <- match(corresponding_cells_after_outlier_removal,
                            original_cells_before_removal )
# check the matching
identical(as.character(original_cells_before_removal[corresponding_index]),
         corresponding_cells_after_outlier_removal)
#> [1] TRUE
# create new object with the new clustering after removing outliers
mixedpop2_post_clustering <- mixedpop2[,corresponding_index]
colData(mixedpop2_post_clustering)[,1] <- clustering_after_outlier_removal(skip this step if clusters are known)
(SCORE aims to get stable subpopulation results by introducing bagging aggregation and bootstrapping to the CORE algorithm)
# find clustering information in an expresion data using SCORE
day5 <- day_5_cardio_cell_sample
cellnames <- colnames(day5$dat5_counts)
cluster <-day5$dat5_clusters
cellnames <-data.frame("Cluster"=cluster, "cellBarcodes" = cellnames)
mixedpop2 <-new_scGPS_object(ExpressionMatrix = day5$dat5_counts,
                    GeneMetadata = day5$dat5geneInfo, CellMetadata = cellnames )
SCORE_test <- CORE_bagging(mixedpop2, remove_outlier = c(0), PCA=FALSE,
                                bagging_run = 20, subsample_proportion = .8)dev.off()
#> null device 
#>           1
##3.2.1 plot CORE clustering
p1 <- plot_CORE(CORE_cluster$tree, CORE_cluster$Cluster, 
    color_branch = c("#208eb7", "#6ce9d3", "#1c5e39", "#8fca40", "#154975",
        "#b1c8eb"))
p1
#> $mar
#> [1] 1 5 0 1
#extract optimal index identified by CORE
key_height <- CORE_cluster$optimalClust$KeyStats$Height
optimal_res <- CORE_cluster$optimalClust$OptimalRes
optimal_index = which(key_height == optimal_res)
#plot one optimal clustering bar
plot_optimal_CORE(original_tree= CORE_cluster$tree,
                 optimal_cluster = unlist(CORE_cluster$Cluster[optimal_index]),
                 shift = -2000)
#> Ordering and assigning labels...
#> 2
#> 162335NA
#> 3
#> 162335423
#> Plotting the colored dendrogram now....
#> Plotting the bar underneath now....
##3.2.2 plot SCORE clustering
#plot all clustering bars
plot_CORE(SCORE_test$tree, list_clusters = SCORE_test$Cluster)
#plot one stable optimal clustering bar
plot_optimal_CORE(original_tree= SCORE_test$tree,
                 optimal_cluster = unlist(SCORE_test$Cluster[
                    SCORE_test$optimal_index]),
                 shift = -100)
#> Ordering and assigning labels...
#> 2
#> 162335NA
#> 3
#> 162335423
#> Plotting the colored dendrogram now....
#> Plotting the bar underneath now....t <- tSNE(expression.mat=assay(mixedpop2))
#> Preparing PCA inputs using the top 1500 genes ...
#> Computing PCA values...
#> Running tSNE ...
p2 <-plot_reduced(t, color_fac = factor(colData(mixedpop2)[,1]),
                      palletes =1:length(unique(colData(mixedpop2)[,1])))
#> Warning: Use of `reduced_dat_toPlot$Dim1` is discouraged. Use `Dim1` instead.
#> Warning: Use of `reduced_dat_toPlot$Dim2` is discouraged. Use `Dim2` instead.
p2#load gene list (this can be any lists of user-selected genes)
genes <-training_gene_sample
genes <-genes$Merged_unique
#the gene list can also be objectively identified by differential expression
#analysis cluster information is requied for find_markers. Here, we use
#CORE results.
#colData(mixedpop2)[,1] <- unlist(SCORE_test$Cluster[SCORE_test$optimal_index])
suppressMessages(library(locfit))
DEgenes <- find_markers(expression_matrix=assay(mixedpop2),
                            cluster = colData(mixedpop2)[,1],
                            selected_cluster=unique(colData(mixedpop2)[,1]))
#the output contains dataframes for each cluster.
#the data frame contains all genes, sorted by p-values
names(DEgenes)
#> [1] "baseMean"       "log2FoldChange" "lfcSE"          "stat"          
#> [5] "pvalue"         "padj"           "id"
#you can annotate the identified clusters
DEgeneList_1vsOthers <- DEgenes$DE_Subpop1vsRemaining$id
#users need to check the format of the gene input to make sure they are
#consistent to the gene names in the expression matrix
#the following command saves the file "PathwayEnrichment.xlsx" to the
#working dir
#use 500 top DE genes
suppressMessages(library(DOSE))
suppressMessages(library(ReactomePA))
suppressMessages(library(clusterProfiler))
genes500 <- as.factor(DEgeneList_1vsOthers[seq_len(500)])
enrichment_test <- annotate_clusters(genes, pvalueCutoff=0.05, gene_symbol=TRUE)
#the enrichment outputs can be displayed by running
clusterProfiler::dotplot(enrichment_test, showCategory=10, font.size = 6)The purpose of this workflow is to solve the following task:
#select a subpopulation, and input gene list
c_selectID <- 1
#note make sure the format for genes input here is the same to the format
#for genes in the mixedpop1 and mixedpop2
genes = DEgenes$id[1:500]
#run the test bootstrap with nboots = 2 runs
cluster_mixedpop1 <- colData(mixedpop1)[,1]
cluster_mixedpop2 <- colData(mixedpop2)[,1]
LSOLDA_dat <- bootstrap_prediction(nboots = 2, mixedpop1 = mixedpop1,
                             mixedpop2 = mixedpop2, genes = genes, 
                             c_selectID  = c_selectID,
                             listData = list(),
                             cluster_mixedpop1 = cluster_mixedpop1,
                             cluster_mixedpop2 = cluster_mixedpop2)#get the number of rows for the summary matrix
row_cluster <-length(unique(colData(mixedpop2)[,1]))
#summary results LDA to to show the percent of cells classified as cells
#belonging by LDA classifier
summary_prediction_lda(LSOLDA_dat=LSOLDA_dat, nPredSubpop = row_cluster )
#>                 V1               V2                                names
#> 1 29.9465240641711 31.5508021390374 LDA for subpop 1 in target mixedpop2
#> 2 53.5714285714286 75.7142857142857 LDA for subpop 2 in target mixedpop2
#> 3 31.5789473684211 28.5714285714286 LDA for subpop 3 in target mixedpop2
#> 4               50             57.5 LDA for subpop 4 in target mixedpop2
#summary results Lasso to show the percent of cells classified as cells
#belonging by Lasso classifier
summary_prediction_lasso(LSOLDA_dat=LSOLDA_dat, nPredSubpop = row_cluster)
#>                 V1               V2                                      names
#> 1 17.1122994652406 63.6363636363636 ElasticNet for subpop1 in target mixedpop2
#> 2              100 97.1428571428571 ElasticNet for subpop2 in target mixedpop2
#> 3 71.4285714285714 66.1654135338346 ElasticNet for subpop3 in target mixedpop2
#> 4             77.5             87.5 ElasticNet for subpop4 in target mixedpop2
# summary maximum deviance explained by the model during the model training
summary_deviance(object = LSOLDA_dat)
#> $allDeviance
#> [1] "39.29" "51.02"
#> 
#> $DeviMax
#>           dat_DE$Dfd          Deviance           DEgenes
#> 1                  0             51.02    genes_cluster1
#> 2                  1             51.02    genes_cluster1
#> 3                  2             51.02    genes_cluster1
#> 4                  4             51.02    genes_cluster1
#> 5                  5             51.02    genes_cluster1
#> 6                  7             51.02    genes_cluster1
#> 7                  8             51.02    genes_cluster1
#> 8                  9             51.02    genes_cluster1
#> 9                 11             51.02    genes_cluster1
#> 10                12             51.02    genes_cluster1
#> 11                14             51.02    genes_cluster1
#> 12                16             51.02    genes_cluster1
#> 13                20             51.02    genes_cluster1
#> 14                25             51.02    genes_cluster1
#> 15                28             51.02    genes_cluster1
#> 16                31             51.02    genes_cluster1
#> 17 remaining DEgenes remaining DEgenes remaining DEgenes
#> 
#> $LassoGenesMax
#> NULL
# summary accuracy to check the model accuracy in the leave-out test set
summary_accuracy(object = LSOLDA_dat)
#> [1] 67.85714 69.19643Here we look at one example use case to find relationship between clusters within one sample or between two sample
#run prediction for 3 clusters
cluster_mixedpop1 <- colData(mixedpop1)[,1]
cluster_mixedpop2 <- colData(mixedpop2)[,1]
#cluster_mixedpop2 <- as.numeric(as.vector(colData(mixedpop2)[,1]))
c_selectID <- 1
#top 200 gene markers distinguishing cluster 1
genes = DEgenes$id[1:200]
LSOLDA_dat1 <- bootstrap_prediction(nboots = 2, mixedpop1 = mixedpop2,
                        mixedpop2 = mixedpop2, genes=genes, c_selectID, 
                        listData =list(),
                        cluster_mixedpop1 = cluster_mixedpop2,
                        cluster_mixedpop2 = cluster_mixedpop2)
c_selectID <- 2
genes = DEgenes$id[1:200]
LSOLDA_dat2 <- bootstrap_prediction(nboots = 2,mixedpop1 = mixedpop2,
                        mixedpop2 = mixedpop2, genes=genes, c_selectID, 
                        listData =list(),
                        cluster_mixedpop1 = cluster_mixedpop2,
                        cluster_mixedpop2 = cluster_mixedpop2)
c_selectID <- 3
genes = DEgenes$id[1:200]
LSOLDA_dat3 <- bootstrap_prediction(nboots = 2,mixedpop1 = mixedpop2,
                        mixedpop2 = mixedpop2, genes=genes, c_selectID, 
                        listData =list(),
                        cluster_mixedpop1 = cluster_mixedpop2,
                        cluster_mixedpop2 = cluster_mixedpop2)
c_selectID <- 4
genes = DEgenes$id[1:200]
LSOLDA_dat4 <- bootstrap_prediction(nboots = 2,mixedpop1 = mixedpop2,
                        mixedpop2 = mixedpop2, genes=genes, c_selectID, 
                        listData =list(),
                        cluster_mixedpop1 = cluster_mixedpop2,
                        cluster_mixedpop2 = cluster_mixedpop2)
#prepare table input for sankey plot
LASSO_C1S2  <- reformat_LASSO(c_selectID=1, mp_selectID = 2,
                             LSOLDA_dat=LSOLDA_dat1,
                             nPredSubpop = length(unique(colData(mixedpop2)
                                [,1])),
                             Nodes_group ="#7570b3")
LASSO_C2S2  <- reformat_LASSO(c_selectID=2, mp_selectID =2,
                             LSOLDA_dat=LSOLDA_dat2,
                             nPredSubpop = length(unique(colData(mixedpop2)
                                [,1])),
                             Nodes_group ="#1b9e77")
LASSO_C3S2  <- reformat_LASSO(c_selectID=3, mp_selectID =2,
                             LSOLDA_dat=LSOLDA_dat3,
                             nPredSubpop = length(unique(colData(mixedpop2)
                                [,1])),
                             Nodes_group ="#e7298a")
LASSO_C4S2  <- reformat_LASSO(c_selectID=4, mp_selectID =2,
                             LSOLDA_dat=LSOLDA_dat4,
                             nPredSubpop = length(unique(colData(mixedpop2)
                                [,1])),
                             Nodes_group ="#00FFFF")
combined <- rbind(LASSO_C1S2,LASSO_C2S2,LASSO_C3S2, LASSO_C4S2 )
combined <- combined[is.na(combined$Value) != TRUE,]
nboots = 2
#links: source, target, value
#source: node, nodegroup
combined_D3obj <-list(Nodes=combined[,(nboots+3):(nboots+4)],
                     Links=combined[,c((nboots+2):(nboots+1),ncol(combined))])
library(networkD3)
Node_source <- as.vector(sort(unique(combined_D3obj$Links$Source)))
Node_target <- as.vector(sort(unique(combined_D3obj$Links$Target)))
Node_all <-unique(c(Node_source, Node_target))
#assign IDs for Source (start from 0)
Source <-combined_D3obj$Links$Source
Target <- combined_D3obj$Links$Target
for(i in 1:length(Node_all)){
   Source[Source==Node_all[i]] <-i-1
   Target[Target==Node_all[i]] <-i-1
}
# 
combined_D3obj$Links$Source <- as.numeric(Source)
combined_D3obj$Links$Target <- as.numeric(Target)
combined_D3obj$Links$LinkColor <- combined$NodeGroup
#prepare node info
node_df <-data.frame(Node=Node_all)
node_df$id <-as.numeric(c(0, 1:(length(Node_all)-1)))
suppressMessages(library(dplyr))
Color <- combined %>% count(Node, color=NodeGroup) %>% select(2)
node_df$color <- Color$color
suppressMessages(library(networkD3))
p1<-sankeyNetwork(Links =combined_D3obj$Links, Nodes = node_df,
                 Value = "Value", NodeGroup ="color", LinkGroup = "LinkColor", 
                 NodeID="Node", Source="Source", Target="Target", fontSize = 22)
p1Here we look at one example use case to find relationship between clusters within one sample or between two sample
#run prediction for 3 clusters
cluster_mixedpop1 <- colData(mixedpop1)[,1]
cluster_mixedpop2 <- colData(mixedpop2)[,1]
row_cluster <-length(unique(colData(mixedpop2)[,1]))
c_selectID <- 1
#top 200 gene markers distinguishing cluster 1
genes = DEgenes$id[1:200]
LSOLDA_dat1 <- bootstrap_prediction(nboots = 2, mixedpop1 = mixedpop1,
                        mixedpop2 = mixedpop2, genes=genes, c_selectID, 
                        listData =list(),
                        cluster_mixedpop1 = cluster_mixedpop1,
                        cluster_mixedpop2 = cluster_mixedpop2)
c_selectID <- 2
genes = DEgenes$id[1:200]
LSOLDA_dat2 <- bootstrap_prediction(nboots = 2,mixedpop1 = mixedpop1,
                        mixedpop2 = mixedpop2, genes=genes, c_selectID, 
                        listData =list(),
                        cluster_mixedpop1 = cluster_mixedpop1,
                        cluster_mixedpop2 = cluster_mixedpop2)
c_selectID <- 3
genes = DEgenes$id[1:200]
LSOLDA_dat3 <- bootstrap_prediction(nboots = 2,mixedpop1 = mixedpop1,
                        mixedpop2 = mixedpop2, genes=genes, c_selectID, 
                        listData =list(),
                        cluster_mixedpop1 = cluster_mixedpop1,
                        cluster_mixedpop2 = cluster_mixedpop2)
#prepare table input for sankey plot
LASSO_C1S1  <- reformat_LASSO(c_selectID=1, mp_selectID = 1,
                             LSOLDA_dat=LSOLDA_dat1, nPredSubpop = row_cluster, 
                             Nodes_group = "#7570b3")
LASSO_C2S1  <- reformat_LASSO(c_selectID=2, mp_selectID = 1,
                             LSOLDA_dat=LSOLDA_dat2, nPredSubpop = row_cluster, 
                             Nodes_group = "#1b9e77")
LASSO_C3S1  <- reformat_LASSO(c_selectID=3, mp_selectID = 1,
                             LSOLDA_dat=LSOLDA_dat3, nPredSubpop = row_cluster, 
                             Nodes_group = "#e7298a")
combined <- rbind(LASSO_C1S1,LASSO_C2S1,LASSO_C3S1)
nboots = 2
#links: source, target, value
#source: node, nodegroup
combined_D3obj <-list(Nodes=combined[,(nboots+3):(nboots+4)],
                     Links=combined[,c((nboots+2):(nboots+1),ncol(combined))])
combined <- combined[is.na(combined$Value) != TRUE,]
library(networkD3)
Node_source <- as.vector(sort(unique(combined_D3obj$Links$Source)))
Node_target <- as.vector(sort(unique(combined_D3obj$Links$Target)))
Node_all <-unique(c(Node_source, Node_target))
#assign IDs for Source (start from 0)
Source <-combined_D3obj$Links$Source
Target <- combined_D3obj$Links$Target
for(i in 1:length(Node_all)){
   Source[Source==Node_all[i]] <-i-1
   Target[Target==Node_all[i]] <-i-1
}
combined_D3obj$Links$Source <- as.numeric(Source)
combined_D3obj$Links$Target <- as.numeric(Target)
combined_D3obj$Links$LinkColor <- combined$NodeGroup
#prepare node info
node_df <-data.frame(Node=Node_all)
node_df$id <-as.numeric(c(0, 1:(length(Node_all)-1)))
suppressMessages(library(dplyr))
n <- length(unique(node_df$Node))
getPalette = colorRampPalette(RColorBrewer::brewer.pal(9, "Set1"))
Color = getPalette(n)
node_df$color <- Color
suppressMessages(library(networkD3))
p1<-sankeyNetwork(Links =combined_D3obj$Links, Nodes = node_df,
                 Value = "Value", NodeGroup ="color", LinkGroup = "LinkColor",
                 NodeID="Node", Source="Source", Target="Target", fontSize = 22)
p1devtools::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 4.1.0 (2021-05-18)
#>  os       Ubuntu 20.04.2 LTS          
#>  system   x86_64, linux-gnu           
#>  ui       X11                         
#>  language (EN)                        
#>  collate  C                           
#>  ctype    en_US.UTF-8                 
#>  tz       America/New_York            
#>  date     2021-05-19                  
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package              * version    date       lib source        
#>  annotate               1.70.0     2021-05-19 [2] Bioconductor  
#>  AnnotationDbi        * 1.54.0     2021-05-19 [2] Bioconductor  
#>  ape                    5.5        2021-04-25 [2] CRAN (R 4.1.0)
#>  aplot                  0.0.6      2020-09-03 [2] CRAN (R 4.1.0)
#>  assertthat             0.2.1      2019-03-21 [2] CRAN (R 4.1.0)
#>  backports              1.2.1      2020-12-09 [2] CRAN (R 4.1.0)
#>  Biobase              * 2.52.0     2021-05-19 [2] Bioconductor  
#>  BiocGenerics         * 0.38.0     2021-05-19 [2] Bioconductor  
#>  BiocManager            1.30.15    2021-05-11 [2] CRAN (R 4.1.0)
#>  BiocParallel           1.26.0     2021-05-19 [2] Bioconductor  
#>  Biostrings             2.60.0     2021-05-19 [2] Bioconductor  
#>  bit                    4.0.4      2020-08-04 [2] CRAN (R 4.1.0)
#>  bit64                  4.0.5      2020-08-30 [2] CRAN (R 4.1.0)
#>  bitops                 1.0-7      2021-04-24 [2] CRAN (R 4.1.0)
#>  blob                   1.2.1      2020-01-20 [2] CRAN (R 4.1.0)
#>  bslib                  0.2.5.1    2021-05-18 [2] CRAN (R 4.1.0)
#>  cachem                 1.0.5      2021-05-15 [2] CRAN (R 4.1.0)
#>  callr                  3.7.0      2021-04-20 [2] CRAN (R 4.1.0)
#>  caret                * 6.0-88     2021-05-15 [2] CRAN (R 4.1.0)
#>  checkmate              2.0.0      2020-02-06 [2] CRAN (R 4.1.0)
#>  class                  7.3-19     2021-05-03 [2] CRAN (R 4.1.0)
#>  cli                    2.5.0      2021-04-26 [2] CRAN (R 4.1.0)
#>  clusterProfiler      * 4.0.0      2021-05-19 [2] Bioconductor  
#>  codetools              0.2-18     2020-11-04 [2] CRAN (R 4.1.0)
#>  colorspace             2.0-1      2021-05-04 [2] CRAN (R 4.1.0)
#>  cowplot                1.1.1      2020-12-30 [2] CRAN (R 4.1.0)
#>  crayon                 1.4.1      2021-02-08 [2] CRAN (R 4.1.0)
#>  data.table             1.14.0     2021-02-21 [2] CRAN (R 4.1.0)
#>  DBI                    1.1.1      2021-01-15 [2] CRAN (R 4.1.0)
#>  DelayedArray           0.18.0     2021-05-19 [2] Bioconductor  
#>  dendextend             1.15.1     2021-05-08 [2] CRAN (R 4.1.0)
#>  desc                   1.3.0      2021-03-05 [2] CRAN (R 4.1.0)
#>  DESeq2                 1.32.0     2021-05-19 [2] Bioconductor  
#>  devtools               2.4.1      2021-05-05 [2] CRAN (R 4.1.0)
#>  digest                 0.6.27     2020-10-24 [2] CRAN (R 4.1.0)
#>  DO.db                  2.9        2021-05-19 [2] Bioconductor  
#>  DOSE                 * 3.18.0     2021-05-19 [2] Bioconductor  
#>  downloader             0.4        2015-07-09 [2] CRAN (R 4.1.0)
#>  dplyr                * 1.0.6      2021-05-05 [2] CRAN (R 4.1.0)
#>  dynamicTreeCut       * 1.63-1     2016-03-11 [2] CRAN (R 4.1.0)
#>  e1071                  1.7-6      2021-03-18 [2] CRAN (R 4.1.0)
#>  ellipsis               0.3.2      2021-04-29 [2] CRAN (R 4.1.0)
#>  enrichplot             1.12.0     2021-05-19 [2] Bioconductor  
#>  evaluate               0.14       2019-05-28 [2] CRAN (R 4.1.0)
#>  fansi                  0.4.2      2021-01-15 [2] CRAN (R 4.1.0)
#>  farver                 2.1.0      2021-02-28 [2] CRAN (R 4.1.0)
#>  fastcluster            1.1.25     2018-06-07 [2] CRAN (R 4.1.0)
#>  fastmap                1.1.0      2021-01-25 [2] CRAN (R 4.1.0)
#>  fastmatch              1.1-0      2017-01-28 [2] CRAN (R 4.1.0)
#>  fgsea                  1.18.0     2021-05-19 [2] Bioconductor  
#>  foreach                1.5.1      2020-10-15 [2] CRAN (R 4.1.0)
#>  fs                     1.5.0      2020-07-31 [2] CRAN (R 4.1.0)
#>  genefilter             1.74.0     2021-05-19 [2] Bioconductor  
#>  geneplotter            1.70.0     2021-05-19 [2] Bioconductor  
#>  generics               0.1.0      2020-10-31 [2] CRAN (R 4.1.0)
#>  GenomeInfoDb         * 1.28.0     2021-05-19 [2] Bioconductor  
#>  GenomeInfoDbData       1.2.6      2021-05-19 [2] Bioconductor  
#>  GenomicRanges        * 1.44.0     2021-05-19 [2] Bioconductor  
#>  ggforce                0.3.3      2021-03-05 [2] CRAN (R 4.1.0)
#>  ggplot2              * 3.3.3      2020-12-30 [2] CRAN (R 4.1.0)
#>  ggraph                 2.0.5      2021-02-23 [2] CRAN (R 4.1.0)
#>  ggrepel                0.9.1      2021-01-15 [2] CRAN (R 4.1.0)
#>  ggtree                 3.0.0      2021-05-19 [2] Bioconductor  
#>  glmnet                 4.1-1      2021-02-21 [2] CRAN (R 4.1.0)
#>  glue                   1.4.2      2020-08-27 [2] CRAN (R 4.1.0)
#>  GO.db                  3.13.0     2021-05-19 [2] Bioconductor  
#>  GOSemSim               2.18.0     2021-05-19 [2] Bioconductor  
#>  gower                  0.2.2      2020-06-23 [2] CRAN (R 4.1.0)
#>  graph                  1.70.0     2021-05-19 [2] Bioconductor  
#>  graphite               1.38.0     2021-05-19 [2] Bioconductor  
#>  graphlayouts           0.7.1      2020-10-26 [2] CRAN (R 4.1.0)
#>  gridExtra              2.3        2017-09-09 [2] CRAN (R 4.1.0)
#>  gtable                 0.3.0      2019-03-25 [2] CRAN (R 4.1.0)
#>  highr                  0.9        2021-04-16 [2] CRAN (R 4.1.0)
#>  htmltools              0.5.1.1    2021-01-22 [2] CRAN (R 4.1.0)
#>  htmlwidgets            1.5.3      2020-12-10 [2] CRAN (R 4.1.0)
#>  httr                   1.4.2      2020-07-20 [2] CRAN (R 4.1.0)
#>  igraph                 1.2.6      2020-10-06 [2] CRAN (R 4.1.0)
#>  ipred                  0.9-11     2021-03-12 [2] CRAN (R 4.1.0)
#>  IRanges              * 2.26.0     2021-05-19 [2] Bioconductor  
#>  iterators              1.0.13     2020-10-15 [2] CRAN (R 4.1.0)
#>  jquerylib              0.1.4      2021-04-26 [2] CRAN (R 4.1.0)
#>  jsonlite               1.7.2      2020-12-09 [2] CRAN (R 4.1.0)
#>  KEGGREST               1.32.0     2021-05-19 [2] Bioconductor  
#>  knitr                  1.33       2021-04-24 [2] CRAN (R 4.1.0)
#>  labeling               0.4.2      2020-10-20 [2] CRAN (R 4.1.0)
#>  lattice              * 0.20-44    2021-05-02 [2] CRAN (R 4.1.0)
#>  lava                   1.6.9      2021-03-11 [2] CRAN (R 4.1.0)
#>  lazyeval               0.2.2      2019-03-15 [2] CRAN (R 4.1.0)
#>  lifecycle              1.0.0      2021-02-15 [2] CRAN (R 4.1.0)
#>  locfit               * 1.5-9.4    2020-03-25 [2] CRAN (R 4.1.0)
#>  lubridate              1.7.10     2021-02-26 [2] CRAN (R 4.1.0)
#>  magrittr               2.0.1      2020-11-17 [2] CRAN (R 4.1.0)
#>  MASS                   7.3-54     2021-05-03 [2] CRAN (R 4.1.0)
#>  Matrix                 1.3-3      2021-05-04 [2] CRAN (R 4.1.0)
#>  MatrixGenerics       * 1.4.0      2021-05-19 [2] Bioconductor  
#>  matrixStats          * 0.58.0     2021-01-29 [2] CRAN (R 4.1.0)
#>  memoise                2.0.0      2021-01-26 [2] CRAN (R 4.1.0)
#>  ModelMetrics           1.2.2.2    2020-03-17 [2] CRAN (R 4.1.0)
#>  munsell                0.5.0      2018-06-12 [2] CRAN (R 4.1.0)
#>  networkD3            * 0.4        2017-03-18 [2] CRAN (R 4.1.0)
#>  nlme                   3.1-152    2021-02-04 [2] CRAN (R 4.1.0)
#>  nnet                   7.3-16     2021-05-03 [2] CRAN (R 4.1.0)
#>  org.Hs.eg.db         * 3.13.0     2021-05-19 [2] Bioconductor  
#>  patchwork              1.1.1      2020-12-17 [2] CRAN (R 4.1.0)
#>  pillar                 1.6.1      2021-05-16 [2] CRAN (R 4.1.0)
#>  pkgbuild               1.2.0      2020-12-15 [2] CRAN (R 4.1.0)
#>  pkgconfig              2.0.3      2019-09-22 [2] CRAN (R 4.1.0)
#>  pkgload                1.2.1      2021-04-06 [2] CRAN (R 4.1.0)
#>  plyr                   1.8.6      2020-03-03 [2] CRAN (R 4.1.0)
#>  png                    0.1-7      2013-12-03 [2] CRAN (R 4.1.0)
#>  polyclip               1.10-0     2019-03-14 [2] CRAN (R 4.1.0)
#>  prettyunits            1.1.1      2020-01-24 [2] CRAN (R 4.1.0)
#>  pROC                   1.17.0.1   2021-01-13 [2] CRAN (R 4.1.0)
#>  processx               3.5.2      2021-04-30 [2] CRAN (R 4.1.0)
#>  prodlim                2019.11.13 2019-11-17 [2] CRAN (R 4.1.0)
#>  proxy                  0.4-25     2021-03-05 [2] CRAN (R 4.1.0)
#>  ps                     1.6.0      2021-02-28 [2] CRAN (R 4.1.0)
#>  purrr                  0.3.4      2020-04-17 [2] CRAN (R 4.1.0)
#>  qvalue                 2.24.0     2021-05-19 [2] Bioconductor  
#>  R6                     2.5.0      2020-10-28 [2] CRAN (R 4.1.0)
#>  rappdirs               0.3.3      2021-01-31 [2] CRAN (R 4.1.0)
#>  RColorBrewer           1.1-2      2014-12-07 [2] CRAN (R 4.1.0)
#>  Rcpp                   1.0.6      2021-01-15 [2] CRAN (R 4.1.0)
#>  RcppArmadillo          0.10.4.0.0 2021-04-13 [2] CRAN (R 4.1.0)
#>  RcppParallel           5.1.4      2021-05-04 [2] CRAN (R 4.1.0)
#>  RCurl                  1.98-1.3   2021-03-16 [2] CRAN (R 4.1.0)
#>  reactome.db            1.76.0     2021-05-19 [2] Bioconductor  
#>  ReactomePA           * 1.36.0     2021-05-19 [2] Bioconductor  
#>  recipes                0.1.16     2021-04-16 [2] CRAN (R 4.1.0)
#>  remotes                2.3.0      2021-04-01 [2] CRAN (R 4.1.0)
#>  reshape2               1.4.4      2020-04-09 [2] CRAN (R 4.1.0)
#>  rlang                  0.4.11     2021-04-30 [2] CRAN (R 4.1.0)
#>  rmarkdown              2.8        2021-05-07 [2] CRAN (R 4.1.0)
#>  rpart                  4.1-15     2019-04-12 [2] CRAN (R 4.1.0)
#>  rprojroot              2.0.2      2020-11-15 [2] CRAN (R 4.1.0)
#>  RSQLite                2.2.7      2021-04-22 [2] CRAN (R 4.1.0)
#>  Rtsne                  0.15       2018-11-10 [2] CRAN (R 4.1.0)
#>  rvcheck                0.1.8      2020-03-01 [2] CRAN (R 4.1.0)
#>  S4Vectors            * 0.30.0     2021-05-19 [2] Bioconductor  
#>  sass                   0.4.0      2021-05-12 [2] CRAN (R 4.1.0)
#>  scales                 1.1.1      2020-05-11 [2] CRAN (R 4.1.0)
#>  scatterpie             0.1.6      2021-04-23 [2] CRAN (R 4.1.0)
#>  scGPS                * 1.6.0      2021-05-19 [1] Bioconductor  
#>  sessioninfo            1.1.1      2018-11-05 [2] CRAN (R 4.1.0)
#>  shadowtext             0.0.8      2021-04-23 [2] CRAN (R 4.1.0)
#>  shape                  1.4.6      2021-05-19 [2] CRAN (R 4.1.0)
#>  SingleCellExperiment * 1.14.0     2021-05-19 [2] Bioconductor  
#>  stringi                1.6.2      2021-05-17 [2] CRAN (R 4.1.0)
#>  stringr                1.4.0      2019-02-10 [2] CRAN (R 4.1.0)
#>  SummarizedExperiment * 1.22.0     2021-05-19 [2] Bioconductor  
#>  survival               3.2-11     2021-04-26 [2] CRAN (R 4.1.0)
#>  testthat               3.0.2      2021-02-14 [2] CRAN (R 4.1.0)
#>  tibble                 3.1.2      2021-05-16 [2] CRAN (R 4.1.0)
#>  tidygraph              1.2.0      2020-05-12 [2] CRAN (R 4.1.0)
#>  tidyr                  1.1.3      2021-03-03 [2] CRAN (R 4.1.0)
#>  tidyselect             1.1.1      2021-04-30 [2] CRAN (R 4.1.0)
#>  tidytree               0.3.3      2020-04-02 [2] CRAN (R 4.1.0)
#>  timeDate               3043.102   2018-02-21 [2] CRAN (R 4.1.0)
#>  treeio                 1.16.0     2021-05-19 [2] Bioconductor  
#>  tweenr                 1.0.2      2021-03-23 [2] CRAN (R 4.1.0)
#>  usethis                2.0.1      2021-02-10 [2] CRAN (R 4.1.0)
#>  utf8                   1.2.1      2021-03-12 [2] CRAN (R 4.1.0)
#>  vctrs                  0.3.8      2021-04-29 [2] CRAN (R 4.1.0)
#>  viridis                0.6.1      2021-05-11 [2] CRAN (R 4.1.0)
#>  viridisLite            0.4.0      2021-04-13 [2] CRAN (R 4.1.0)
#>  withr                  2.4.2      2021-04-18 [2] CRAN (R 4.1.0)
#>  xfun                   0.23       2021-05-15 [2] CRAN (R 4.1.0)
#>  XML                    3.99-0.6   2021-03-16 [2] CRAN (R 4.1.0)
#>  xtable                 1.8-4      2019-04-21 [2] CRAN (R 4.1.0)
#>  XVector                0.32.0     2021-05-19 [2] Bioconductor  
#>  yaml                   2.2.1      2020-02-01 [2] CRAN (R 4.1.0)
#>  zlibbioc               1.38.0     2021-05-19 [2] Bioconductor  
#> 
#> [1] /tmp/RtmpNUcyeE/Rinstfe8301d8740c0
#> [2] /home/biocbuild/bbs-3.13-bioc/R/library