BIMSBbioinfo / genomation

R package for genomic feature analysis and visualization
http://bioinformatics.mdc-berlin.de/genomation/
73 stars 22 forks source link

Error in validObject(.Object) : invalid class "ScoreMatrix" object: superclass "mMatrix" not defined in the environment of the object's class #210

Open danli349 opened 8 months ago

danli349 commented 8 months ago

Hello

How should I solve this problem?

library(genomation)
transcriptFile=system.file("extdata",
                      "refseq.hg19.chr20.bed",
                      package="compGenomRData")
feat=readTranscriptFeatures(transcriptFile,
                            remove.unusual = TRUE,
                            up.flank = 500, down.flank = 500)
prom=feat$promoters # get promoters from the features

# get for H3K4me3 values around TSSes
# we use strand.aware=TRUE so - strands will
# be reversed
H3K4me3File=system.file("extdata",
                      "H1.ESC.H3K4me3.chr20.bw",
                      package="compGenomRData")
sm=ScoreMatrix(H3K4me3File, prom,
               type="bigWig", strand.aware = TRUE)
Error in validObject(.Object) : 
  invalid class "ScoreMatrix" object: superclass "mMatrix" not defined in the environment of the object's class

Thanks a lot

igumnov-daniel commented 7 months ago

Possible solution: https://github.com/BIMSBbioinfo/genomation/issues/209

danli349 commented 7 months ago

@igumnov-daniel It works! Thanks