marker_select: decide for one gene whether it is a marker for a certain cell...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

decide for one gene whether it is a marker for a certain cell type

Usage

1
marker_select(row1, cols, cut = 1, compto = 1)

Arguments

row1

a numeric vector of expression values (row)

cols

a vector of cell types (column)

cut

an expression minimum cutoff

compto

compare max expression to the value of next 1 or more

Value

vector of cluster name and ratio value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
pbmc_avg <- average_clusters(
    mat = pbmc_matrix_small,
    metadata = pbmc_meta,
    cluster_col = "classified",
    if_log = FALSE
)

marker_select(
    row1 = pbmc_avg["PPBP", ],
    cols = names(pbmc_avg["PPBP", ])
)

NCBI-Hackathons/RClusterCT documentation built on July 20, 2021, 3:15 p.m.