Skip to contents

Check difference of two liger command

Usage

commandDiff(object, cmd1, cmd2)

Arguments

object

liger object

cmd1, cmd2

Exact string of command labels. Available options could be viewed with running commands(object).

Value

If any difference found, a character vector summarizing all differences

Examples

pbmc <- normalize(pbmc)
#>  Normalizing datasets "ctrl"
#>  Normalizing datasets "stim"
#>  Normalizing datasets "stim" ... done
#> 
#>  Normalizing datasets "ctrl"

#>  Normalizing datasets "ctrl" ... done
#> 
pbmc <- normalize(pbmc, log = TRUE, scaleFactor = 1e4)
#>  Normalizing datasets "ctrl"
#>  Normalizing datasets "stim"
#>  Normalizing datasets "stim" ... done
#> 
#>  Normalizing datasets "ctrl"

#>  Normalizing datasets "ctrl" ... done
#> 
cmds <- commands(pbmc)
commandDiff(pbmc, cmds[1], cmds[2])
#> [1] "Argument not found in `x`: log"        
#> [2] "Argument not found in `x`: scaleFactor"