Skip to contents

Input the Single data in seruat format

Usage

Single_data_input(
  Pagwas,
  Single_data,
  nfeatures = NULL,
  Pathway_list = NULL,
  assay = "RNA",
  min_clustercells = 5
)

Arguments

Pagwas

Pagwas format

Single_data

Input the Single data in seruat format, Idents should be the celltypes annotation. mainly used the Single_data@assays$RNA@data

nfeatures

The parameter for FindVariableFeatures, NULL means select all genes

Pathway_list

(list,character) pathway gene sets list

assay

assay data of your single cell data to use,default is "RNA".

min_clustercells

Threshold for total cells fo each cluster.

Value

Pagwas list including: "Celltype_anno" "data_mat" "VariableFeatures" "merge_scexpr"

Author

Chunyu Deng

Examples

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
)
#> Input single cell data!
#> 10 cell types are remain, after filter!