signed_set_scoring: Scores cell expression of genes in set taking into account...

Description Usage Arguments Value

View source: R/signed_set_scoring.R

Description

Takes in a gene set and uses normalized scaled gene expression data to calculate a score describing extent to which cells are expressing genes in the set. Seurat object must contain scale_data assay. Gene set must be organized such that "genes" are genes and "FC" is (log)foldchange. All genes will be assumed to be significant.

Usage

1
2
3
4
5
6
7
signed_set_scoring(
  ser,
  geneset,
  from_gene = "MGI",
  to_gene = "MGI",
  scaled = TRUE
)

Arguments

ser

A Seurat object to be scored by the gene set. Must contain scaled data

geneset

A list of genes and their fold changes.

from_gene

Original gene type

to_gene

Gene type for conversion

scaled

Boolean to determine whether to scale score by the number of genes in the set

Value

Outputs a vector of score values named as cell names


Chris-Cherry/sctools documentation built on Jan. 25, 2022, 2:19 p.m.