expression_plot_2: Expression Plot 2

View source: R/expression_plot_2.R

expression_plot_2R Documentation

Expression Plot 2

Description

Displays the level of expression of two genes in each cell on the 2D projected data.

Usage

expression_plot_2(data, name.1, name.2, tsne)

Arguments

data

a data frame of n rows (genes) and m columns (cells) of read or UMI counts (note : rownames(data)=genes)

name.1

the identifier of the first gene of interest

name.2

the identifier of the second gene of interest

tsne

a table of n rows and 2 columns with t-SNE projection coordinates for each cell

Details

This function can be used independantly from any other. It displays the expression level of two genes of interest on a 2D projection.

'name.1' and 'name.2' can be any characters that correspond to a row name of 'data'.

Value

The function returns a R plot.

Examples

data <- matrix(runif(100,0,1),nrow=2,ncol=50)
rownames(data) <- c("gene 1", "gene 2")
tsne <- matrix(runif(100,-1,1),ncol=2)
expression_plot_2(data,"gene 1","gene 2",tsne)


SCA-IRCM/SingleCellSignalR documentation built on Dec. 11, 2022, 2:30 p.m.