[BioC] Problem loading saved GenomicRanges object

Michael Dondrup michael.dondrup at uni.no
Sun Feb 20 17:32:34 CET 2011


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
> 



More information about the Bioconductor mailing list