Coerce a SeuratCommand to a list

# S3 method for SeuratCommand
as.list(x, complete = FALSE, ...)

Arguments

x

A SeuratCommand object

complete

Include slots besides just parameters (eg. call string, name, timestamp)

...

Ignored

Value

A list with the parameters and, if complete = TRUE, the call string, name, and timestamp

See also

Examples

cmd <- pbmc_small[["NormalizeData.RNA"]]
as.list(cmd)
#> $assay
#> [1] "RNA"
#> 
#> $normalization.method
#> [1] "LogNormalize"
#> 
#> $scale.factor
#> [1] 10000
#> 
#> $verbose
#> [1] TRUE
#> 
as.list(cmd, complete = TRUE)
#> $name
#> [1] "NormalizeData.RNA"
#> 
#> $time.stamp
#> [1] "2018-08-27 20:32:17 UTC"
#> 
#> $assay.used
#> [1] "RNA"
#> 
#> $call.string
#> [1] "NormalizeData(object = pbmc_small)"
#> 
#> $assay
#> [1] "RNA"
#> 
#> $normalization.method
#> [1] "LogNormalize"
#> 
#> $scale.factor
#> [1] 10000
#> 
#> $verbose
#> [1] TRUE
#>