Custom Slot Getters and Setters {karyotapR}R Documentation

Getter and Setter functions for TapestriExperiment slots

Description

Get and set custom slots in TapestriExperiment. Slots include barcodeProbe for a sample barcode probe ID and grnaProbe for a gRNA-associated probe ID. These are used as shortcuts for moveNonGenomeProbes() and countBarcodedReads(). gmmParams holds parameters and metadata for GMM copy number calling models.

Usage

barcodeProbe(x)

## S4 method for signature 'TapestriExperiment'
barcodeProbe(x)

barcodeProbe(x) <- value

## S4 replacement method for signature 'TapestriExperiment'
barcodeProbe(x) <- value

grnaProbe(x)

## S4 method for signature 'TapestriExperiment'
grnaProbe(x)

grnaProbe(x) <- value

## S4 replacement method for signature 'TapestriExperiment'
grnaProbe(x) <- value

gmmParams(x)

## S4 method for signature 'TapestriExperiment'
gmmParams(x)

Arguments

x

A TapestriExperiment object

value

Character, probe ID to assign to slot

TapestriExperiment

A TapestriExperiment object

Value

For the getter methods barcodeProbe, grnaProbe, and gmmParams, the value of the given slot is returned. For the setter methods barcodeProbe and grnaProbe, a TapestriExperiment object is returned with modifications made to the given slot.

Functions

Examples

tap.object <- newTapestriExperimentExample() # example TapestriExperiment object
barcodeProbe(tap.object) <- "Probe01"
barcodeProbe(tap.object)

grnaProbe(tap.object) <- "Probe02"
grnaProbe(tap.object)

gmmParams(tap.object)

[Package karyotapR version 1.0.1 Index]