methylKit icon indicating copy to clipboard operation
methylKit copied to clipboard

Re-Assignment of Sample Ids fails

Open alexg9010 opened this issue 2 years ago • 0 comments

> getSampleID(methylRawList.obj) <- c("1","2","3","4")
Error in asMethod(object, Class, value) :
  c("the computation: 'as(object,\"vector\") <- value' is valid when object has class “list” only if 'is(value, \"vector\")' is TRUE ('class(value)' was “matrix”)\n", "the computation: 'as(object,\"vector\") <- value' is valid when object has class “list” only if 'is(value, \"vector\")' is TRUE ('class(value)' was “array”)\n")

Note: The error message could be improved too.

> getSampleID(methylRawList.obj) <- c(1,2,3,4)
Error in (function (cl, name, valueClass)  :
  assignment of an object of class “numeric” is not valid for @‘sample.id’ in an object of class “methylRaw”; is(value, "character") is not TRUE

alexg9010 avatar Jan 13 '23 14:01 alexg9010