isBulk: Retrieve whether a given object would be treated as bulk...

View source: R/bulk-get-and-set.R

isBulkR Documentation

Retrieve whether a given object would be treated as bulk versus single-cell by dittoSeq

Description

Retrieve whether a given object would be treated as bulk versus single-cell by dittoSeq

Usage

isBulk(object)

Arguments

object

A target Seurat, SingleCellExperiment, or SummarizedExperiment object

Value

Logical: whether the provided object would be treated as bulk data by dittoSeq.

  • TRUE for SummarizedExperiments that are not SCEs, and for SCEs with $bulk = TRUE in their internal metadata.

  • FALSE for any other object type and for SCEs without such internal metadata

See Also

setBulk to (add to and) set the internal metadata of an SCE to say whether the object repressents bulk data.

Examples

example(importDittoBulk, echo = FALSE)
myRNA

isBulk(myRNA)

scRNA <- setBulk(myRNA, FALSE)
isBulk(scRNA)

dtm2451/DittoSeq documentation built on April 2, 2024, 8:25 p.m.