bc_2df: Transforms BarcodeObj object into another data type

bc_2dfR Documentation

Transforms BarcodeObj object into another data type

Description

Transforms BarcodeObj object into data.frame, data.table or matrix.

Usage

bc_2df(barcodeObj)

bc_2dt(barcodeObj)

bc_2matrix(barcodeObj)

## S4 method for signature 'BarcodeObj'
bc_2df(barcodeObj)

## S4 method for signature 'BarcodeObj'
bc_2dt(barcodeObj)

## S4 method for signature 'BarcodeObj'
bc_2matrix(barcodeObj)

Arguments

barcodeObj

A BarcodeObj object.

Value

A data.frame, with two columns: barcode_seq and count.

Examples

data(bc_obj)

bc_obj <- bc_cure_depth(bc_obj)

# BarcodeObj to data.frame
bc_2df(bc_obj)

# BarcodeObj to data.table
bc_2dt(bc_obj)

# BarcodeObj to matrix
bc_2matrix(bc_obj)

###

wenjie1991/CellBarocde documentation built on April 17, 2024, 4:41 a.m.