pos_neg.label: Label a group of cells positive or negative for a single gene

Description Usage Arguments Value Examples

View source: R/group_labels.R

Description

Label a group of cells positive or negative for a single gene

Usage

1
2
pos_neg.label(df, rowname, x = 100, x.limit = 0, posname = "pos",
  negname = "neg")

Arguments

df

A data frame

rowname

The name of the gene(row) to be measured for hits in provided cells

x

The minimum number of hits required to label a cell positive for the expression of a particular gene (default: 100)

x.limit

The maximum number of hits of the gene defined by rowname that is allowed to be present in a negative cell (default: 0)

posname

The string to label cells that are determined to be positive (default: "pos")

negname

The string to label cells that are determined to be negative (default: "neg")

Value

A named character vector that contains posname and negname, and all cells that do not qualify as positive or negative are omitted

Examples

1
2
pos_neg.label(df = Fincher_muscle, rowname = "dd_Smed_v4_12111_0_1", x = 100,
              x.limit = 10, posname = "slit_pos", negname = "slit_neg")

adamnc2/simpleSCDE documentation built on May 7, 2019, 7:40 a.m.