Learn R Programming

sleuth (version 0.30.0)

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

Description

Extend internal '$<-' for sleuth object

Usage

# S3 method for sleuth
$(obj, name) <- value

Arguments

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

Run this code
# NOT RUN {
obj$transform_fun_counts <- function(x) log2(x+0.5)
# }

Run the code above in your browser using DataLab