Closed Obtusah closed 1 month ago
Hi @Obtusah ,
defaultCluster
is technically not a "slot" of a <liger>
class object in R terms. You'll be able to access it with getter function defaultCluster(sr_liger)
once you have it set. From the screenshot, it doesn't seem that you have any clustering result present at this moment, so you should get NULL
when you call that getter. It'll be automatically set when you have your first clustering run. If you need to tweak parameters and save an alternative result with a different variable name, you might need to reset with defaultCluster(sr_liger) <- <newVariable>
. If you really need to use symbol access like @
, it is accessible at sr_liger@uns$defaultCluster
. Note that defaultDimRed
is accessed in a similar way.
Best, Yichen
Hi, while running a code using liger package, The error seems to be caused of liger object. My
doesn't have attribute 'defaultCluster'. I printed out the 'object@uns'. The contents were lines below "+++...++" in the image. only attributes named factorization and factorization$k were present.
I searched liger code and am guessing 'defaultCluster' is some kind of getter.