Problem loading saved GenomicRanges object
1
0
Entering edit mode
@michael-dondrup-3849
Last seen 10.2 years ago
Hi, I have saved a GRanges object and now after updating GenomicRanges I have trouble loading it again: > gr GRanges with 2581 ranges and 4 elementMetadata values Error in validObject(.Object) : invalid class "GRanges" object: slots in class definition but not in object: "seqinfo" > This data is very important, so is there a way to restore this object? Thank you for your help. Michael > sessionInfo() R version 2.12.1 (2010-12-16) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] GenomicRanges_1.2.0 IRanges_1.8.9 >
GenomicRanges GenomicRanges • 1.2k views
ADD COMMENT
0
Entering edit mode
@vincent-j-carey-jr-4
Last seen 9 weeks ago
United States
It isn't a problem with loading it, but with showing it given the relationship between the object and the class definition in your session. After loading, try gr = updateObject(gr) and then reserialize if it works. If it doesn't, an updateObject method may be needed; you will still be able to interrogate the loaded object for slots manually even if an updater does not exist. On Sun, Feb 20, 2011 at 5:19 AM, Michael Dondrup <michael.dondrup@uni.no>wrote: > Hi, > I have saved a GRanges object and now after updating GenomicRanges I have > trouble loading it again: > > > gr > GRanges with 2581 ranges and 4 elementMetadata values > Error in validObject(.Object) : > invalid class "GRanges" object: slots in class definition but not in > object: "seqinfo" > > > > This data is very important, so is there a way to restore this object? > > Thank you for your help. > Michael > > > sessionInfo() > R version 2.12.1 (2010-12-16) > Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) > > locale: > [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] GenomicRanges_1.2.0 IRanges_1.8.9 > > > > _______________________________________________ > Bioconductor mailing list > Bioconductor@r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > [[alternative HTML version deleted]]
ADD COMMENT
0
Entering edit mode
Thank you Vincent, updateObject worked. Best Michael On Feb 20, 2011, at 12:14 PM, Vincent Carey wrote: > It isn't a problem with loading it, but with showing it given the relationship between the object and the class definition in your session. After loading, try > > gr = updateObject(gr) > > and then reserialize if it works. If it doesn't, an updateObject method may be needed; you will still be able to interrogate the loaded object for slots manually even if an updater does not exist. > > On Sun, Feb 20, 2011 at 5:19 AM, Michael Dondrup <michael.dondrup at="" uni.no=""> wrote: > Hi, > I have saved a GRanges object and now after updating GenomicRanges I have trouble loading it again: > > > gr > GRanges with 2581 ranges and 4 elementMetadata values > Error in validObject(.Object) : > invalid class "GRanges" object: slots in class definition but not in object: "seqinfo" > > > > This data is very important, so is there a way to restore this object? > > Thank you for your help. > Michael > > > sessionInfo() > R version 2.12.1 (2010-12-16) > Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) > > locale: > [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] GenomicRanges_1.2.0 IRanges_1.8.9 > > > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor >
ADD REPLY

Login before adding your answer.

Traffic: 563 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6