parse_loc_object: more flexible parsing of single cell objects

View source: R/utils.R

parse_loc_objectR Documentation

more flexible parsing of single cell objects

Description

more flexible parsing of single cell objects

Usage

parse_loc_object(
  input,
  type = class(input),
  expr_loc = NULL,
  meta_loc = NULL,
  var_loc = NULL,
  cluster_col = NULL,
  lookuptable = NULL
)

Arguments

input

input object

type

look up predefined slots/loc

expr_loc

function that extracts expression matrix

meta_loc

function that extracts metadata

var_loc

function that extracts variable genes

cluster_col

column of clustering from metadata

lookuptable

if not supplied, will use object_loc_lookup() for parsing.

Value

list of expression, metadata, vargenes, cluster_col info from object

Examples

so <- so_pbmc()
obj <- parse_loc_object(so)
length(obj)

rnabioco/clustifyR documentation built on Aug. 30, 2024, 8:16 a.m.