Skip to contents

Filter genes by expression and grouping

Usage

filter_genes_by_expression(
  data,
  group_by = "combined_id",
  min_counts = 10,
  min_samples = 2
)

Arguments

data

A tidyseurat object merged with metadata. Must contain columns "Well_ID", "Row", "Column"

group_by

Name of the column that defines groups of replicates

min_counts

Minimum number of reads per gene per group

min_samples

Minimum number of samples in a group

Value

tidyseurat object

Examples

data(mini_mac)
mini_mac <- filter_genes_by_expression(mini_mac,
                                       group_by = "combined_id", 
                                       min_counts = 10, min_samples = 2)
#> Warning: The `slot` argument of `GetAssayData()` is deprecated as of SeuratObject 5.0.0.
#>  Please use the `layer` argument instead.
#>  The deprecated feature was likely used in the macpie package.
#>   Please report the issue to the authors.