You are here

Cereal

3 posts / 0 new
Last post
Cereal
#1

The compiled downloads of pyrosetta from Rosetta commons* aren't '--serialization' builds.

* I was going to doublecheck but https://www.rosettacommons.org/software/license-and-download is giving me a 404 for PyRosetta.

Is there any disadavantage in this build one should be wary of? Like slower, segfault-y-er, lacking other features etc. 
The fact that it is not one of the options makes me think there may be, hence my asking.

print(pyrosetta.version())
# PyRosetta-4 2020 [Rosetta PyRosetta4.Release.python37.linux 2020.49+release.fac69dd63b19b7d5dac246655b6c15158b98365e 2020-12-01T20:40:56]
try:
    pickle.dumps(pose)
except NotImplementedError as err:
    print(f'{err.__class__.__name__}: {err}')
    # NotImplementedError: __cereal_getstate__ requires pyrosetta '--serialization' build.

 

Category: 
Post Situation: 
Thu, 2021-07-15 02:00
matteoferla

Hi Mateo!

Thanks for letting us know about the broken link.
I've fixed it now, and it correctly forwards to the pyrosetta download page.

I'm afraid I currently have no answer for your actual question, but will look into it.

Ziv.

Sat, 2021-07-24 04:31
zivben

It seems that the latest version has serialisation —it's probably stated somewhere.

import pickle

pose = pyrosetta.pose_from_sequence('ELVIS'+'IS'+'ALIVE')

with open('test.p', 'wb') as fh:
    pickle.dump(obj=pose, file=fh)

with open('test.p', 'rb') as fh:
    qose = pickle.load(file=fh)
    
qose.sequence()

Return 'ELVISISALIVE'. Version (pyrosetta.version()): PyRosetta-4 2022 [Rosetta PyRosetta4.conda.linux.cxx11thread.serialization.CentOS.python38.Release 2022.09+release.433f0fcb5cc4b4535ac17c487ec545546b066fb5 2022-03-03T23:35:16]

Thank you whomever did it for adding serialisation!

Thu, 2022-03-17 05:42
matteoferla