genomation icon indicating copy to clipboard operation
genomation copied to clipboard

invalid class “ScoreMatrix” object

Open LiyanJi-code opened this issue 4 years ago • 1 comments

## When I run the code as below, I got an error. Could you help me deal with the bugs? Thanks a lot. data(cage) data(promoters) scores1=ScoreMatrix(target=cage,windows=promoters,strand.aware=TRUE, weight.col="tpm")

library(GenomicRanges) covs = coverage(cage) scores2 = ScoreMatrix(target=covs,windows=promoters,strand.aware=TRUE) scores2

bam.file = system.file('unitTests/test.bam', package='genomation') windows = GRanges(rep(c(1,2),each=2), IRanges(rep(c(1,2), times=2), width=5)) scores3 = ScoreMatrix(target=bam.file,windows=windows, type='bam') scores3

Error in validObject(.Object) : invalid class “ScoreMatrix” object: superclass "vector_OR_Vector" not defined in the environment of the object's class

sessionInfo() R version 3.6.0 (2019-04-26) Platform: x86_64-pc-linux-gnu (64-bit) Running under: CentOS release 6.9 (Final)

LiyanJi-code avatar Jun 09 '20 09:06 LiyanJi-code

Hi @Julian-jly ,

what version of genomation are you using? I just quickly checked your code, and for me, it works just fine. Do you use S4Vectors package version >= 0.17.25 ?

Kasia

katwre avatar Jun 09 '20 09:06 katwre