Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danli349 opened this issue Feb 22, 2024 · 2 comments

Comments

@danli349
Copy link

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
Copy link

igumnov-daniel commented Mar 3, 2024

Possible solution: #209

@danli349
Copy link
Author

danli349 commented Mar 6, 2024

@igumnov-daniel It works! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants