Re:[Biojava-l] Source of profileHMM class

2002-07-10 Thread Lachlan Coin
Hi Tisanai, I agree with you - I have changed it in the cvs repository, so if you're using anonymous cvs you should be able to access the modified version. Regards, Lachlan >Hi > I'm new of using biojava package. I download the source >biojava-1.21.tar.gz from the download area. >When I loo

[Biojava-l] Problem with serialisation of Markov Models

2002-07-10 Thread Lachlan Coin
Hi, I am trying to use serialisation to write a ProfileHMM to disk and then to read it from disk. However, I get the following error in reading the object from the disk when I write: ProfileHMM model = (ProfileHMM) p.readObject(); java.lang.NullPointerException at org.biojava.bio.sym

RE: [Biojava-l] Problem with serialisation of Markov Models

2002-07-10 Thread Schreiber, Mark
Hi - The problem here is that Markov Models have there own custom state alphabets that inherit from AbstractAlphabet. AbstractAlphabet has a readResolve method for reconstructing alphabets when they are deserialized: /** * To prevent duplication of a what should be a * single instance of