filterByClass: Filter by meta-data

View source: R/markerGenesAndMapping.r

filterByClassR Documentation

Filter by meta-data

Description

Return a filter of TRUE/FALSE values for a given piece of meta-data (e.g., broad class).

Usage

filterByClass(
  classVector,
  sampleInfo,
  classColumn = "cluster_type_label",
  clusterColumn = "cluster_label",
  threshold = 0.1
)

Arguments

classVector

vector corresponding to the class information for filtering (e.g., vector of label calls)

sampleInfo

matrix of sample information with rows corresponding to cells and columns corresponding to meta-data

classColumn

column name of class information

clusterColumn

column name of cluster information

threshold

minimum fraction of cluster cells from a given class to be considered present

Value

a matrix of filters with rows as clusters and columns as classes with entries of TRUE or FALSE indicating whether cells from a given class can assigned to that cluster, given threshold.


AllenInstitute/mfishtools documentation built on July 5, 2023, 4:20 p.m.