cash-set-.sleuth: Extend internal '$<-' for sleuth object

$<-.sleuthR Documentation

Extend internal '$<-' for sleuth object

Description

Extend internal '$<-' for sleuth object

Usage

## S3 replacement method for class 'sleuth'
obj$name <- value

Details

: This extension is mainly to address two cases:

  • case 1: when transform_fun_counts or transform_fun_tpmis changed by user. This informs the user that sleuth_prep and sleuth_fit need to be rerun.

  • case 2: when gene_mode or pval_aggregate are modified. This warns the user if there is a conflict between these two mutually exclusive modes, and overrides the one that was left unmodified by the user. This also warns the user if unexpected behavior is likely to occur.

Otherwise it acts normally.

Examples

obj$transform_fun_counts <- function(x) log2(x+0.5)

pachterlab/sleuth documentation built on Nov. 17, 2022, 4:51 p.m.