项目作者: guokai8

项目描述 :
Identify cell type based on cell markers for single cell squencing
高级语言: R
项目地址: git://github.com/guokai8/rcellmarker.git
创建时间: 2020-03-03T02:58:45Z
项目社区:https://github.com/guokai8/rcellmarker

开源协议:

下载


rcellmarker

rcellmarker Project Status: Code Size:

Description

rcellmarker provides method to identify cell type based on single cell sequencing data. Since most methods try to annotate cell types manually after clustering the single-cell RNA-seq data. Such methods are labor-intensive and heavily rely on user expertise, which may lead to inconsistent results. Here, we present rcellmarker package — an automatic tool to annotate cell types from single-cell RNA-seq data. Now only support human, mouse and rat .

Installation

  1. library(devtools)
  2. install_github("guokai8/rcellmarker")

Quick tour

  1. set.seed(123)
  2. library(rcellmarker)
  3. gene=sample(unique(human$SYMBOL),20)
  4. res<-cells(gene,species = "human",keytype ="SYMBOL")
  5. head(res)
  6. #if you have the result include the cluster information, padj value and avg_logFC named as "single"
  7. head(getdetail(res,single))
  8. ## to show the markers for the cluster
  9. marker(res)
  10. ## if yuo have the results from Seurat of cellranger named as 'df'
  11. ## default only show the top 3 cell type for each cluster and you can also set the minSize which stand for minimal genes should be include in the celltype
  12. ## You can use paramater topn to change it
  13. res <- cellMarker(df,type='seurat',species='human',keytype='SYMBOL',weight=1) #weight for avg_logFC
  14. # or
  15. res <- cellMarker(df,type='cellranger',species='human',keytype='SYMBOL',weight=100)
  16. ## only do the assign for cluster 1
  17. res <- cellMarker(df,type='cellranger',species='human',keytype='SYMBOL', cluster=1, weight=100)
  18. # or you just have two columns include cluster and gene name
  19. res <- cellMarker(df,type='custom',species='human',keytype='SYMBOL')
  20. ## to show the markers for each cluster
  21. marker(res)

Note

The rcellmarker package use the CellMarker and PanglaoDB database as the reference with ID cleaning and merging. We also add information from the newest public papers related with single cell field from NCBI. The package is still under development. Other species will be supported soon.

Contact information

For any questions please contact guokai8@gmail.com