View source: R/Pathway_pcascore_run.R
Pathway_pcascore_run | R Documentation |
The function can calculate the pathway pcascore for celltypes and single cells.
Pathway_pcascore_run(
Pagwas = NULL,
Pathway_list = NULL,
min.pathway.size = 10,
max.pathway.size = 1000
)
Pagwas |
Pagwas format |
Pathway_list |
Pathawy gene list(gene symbol),list name is pathway name. |
min.pathway.size |
Threshold for min pathway gene size. |
max.pathway.size |
Threshold for max pathway gene size. |
pca score for pathway in single data and celltypes
Chunyu Deng
library(scPagwas)
Pagwas <- list()
# Start to read the single cell data
Single_data <- readRDS(system.file("extdata", "scRNAexample.rds",
package = "scPagwas"
))
Pagwas <- Single_data_input(
Pagwas = Pagwas,
assay = "RNA",
Single_data = Single_data,
Pathway_list = Genes_by_pathway_kegg
)
Single_data <- Single_data[, colnames(Pagwas$data_mat)]
# Run pathway pca score!
Pagwas <- Pathway_pcascore_run(
Pagwas = Pagwas,
Pathway_list = Genes_by_pathway_kegg
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.