set_debris_test_set: Set debris and test droplets

View source: R/filter.R

set_debris_test_setR Documentation

Set debris and test droplets

Description

Specifies the droplets that are in the test set and debris set. The test set consists of droplets that will be classified by DIEM, the labels of which are allowed to change during the EM. The debris set consists of droplets with labels fixed to the debris group during the EM.

Usage

set_debris_test_set(x, min_counts = 100, min_genes = 0, top_n = NULL,
  debris_ids = NULL, verbose = TRUE)

Arguments

x

An SCE object.

min_counts

A numeric value that specifies the minimum total read/UMI counts a test droplet can have.

min_genes

A numeric value that specifies the minimum total genes detected a test droplet can have. Set to 0 by default.

top_n

A numeric value giving the total number of test droplets and take the counts of the top_n ranked droplet. Turned off by default.

debris_ids

A character vector of droplet IDs that will be assigned to the debris set, regardless of its total counts or genes detected.

verbose

verbosity

Details

min_counts and min_genes specify the lower limit that droplets in the test set must have. The default it to set all droplets with at least 100 read counts. Optionally, the top_n parameter can specify that the top top_n are set the test set, and all others are set to the debris set. If the read/UMI count of the top_n count-ranked droplet is greater than min_counts, then the min_counts is increased to this limit. The debris_ids parameter allows additional flexibility in specifying those droplets that are included in the debris set. For example, it may be useful to set droplets above a pre-determined MT

Value

An SCE object.


marcalva/diem documentation built on Jan. 1, 2023, 2:33 a.m.