I am using scran version 1.22.1 trying to get the size factor from computeSumFactors
script which i am using
sizefact <- scran::computeSumFactors(x = input, clusters = emp.clusters)
Error
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘assay’ for signature ‘"matrix", "character"’
error is not showing with calculateSumFactors please suggest me why this error I am getting in case of computeSumFactors