Get_Genes: Find out if the gene is in the object

Description Usage Arguments Value Examples

View source: R/Get_Mixture.R

Description

Find out if the gene is in the object

Usage

1
Get_Genes(Object, genes)

Arguments

Object

seurat.obj/matrix (row)/data.frame (row)/character

genes

the gene you interested

Value

the genes in the object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
input.file <- system.file('extdata','pbmc_1k.RDS',package = 'LIANLABDATA')
pbmc_1k <- readRDS(input.file)
genes = c('CD8A','CD3','CD4')
Get_Genes(pbmc_small,genes)

input.file <- system.file('extdata','DEG.csv',package = 'LIANLABDATA')
markers <- read.csv(input.file,header = T, row.names = 1)
Get_Genes(markers,genes)

all_genes = c('CD8A','CD3','CD8A1')
Get_Genes(all_genes,genes)

## End(Not run)

Lian-Lab/LIANLAB documentation built on June 23, 2021, 5:37 a.m.