You are here

Customize Rosetta codes and make it accessible to PyRosetta

8 posts / 0 new
Last post
Customize Rosetta codes and make it accessible to PyRosetta
#1

Hi,

I'm trying to calculate the atomwise fit scores between specific atoms and nearby electron density maps. It seems that ElectronDensityAtomwise::residue_score() can calculate residue score, while ElectronDensityAtomwise::atom_gradient() can calculate atom score gradient. But neither of them is what I want exactly, and I do not want to compute normalization for the maps which is forcefully done if you want to get the fit scores. I can modify the Rosetta codes to calculate the atom scores I expected, but is it possible to make the modified functions accessible to PyRosetta? Is it difficult to update the PyRosetta bindings manually?

Many thanks

xfliu

Post Situation: 
Thu, 2012-05-24 06:27
xfliu

Our official releases have all code necessary to build PyRoseta. Check src/python/bindings/building.txt for details. So if you using Linux of Mac with compatible OS versions rebuilding should not be too hard. Windows build is much more complicated though, so if you using WIndows I would recommend to look for alternatives.

Thu, 2012-05-24 08:15
Sergey

Thank you Sergey. It seems that not all of the namespaces and functions are binded according to building.txt. So if I want to add other namespaces like ElectronDensityAtomwise, should I just add the correspoding header files to the IncludeDict and set them to "True"?

Thu, 2012-05-24 09:30
xfliu

Mmm that part of the doc is outdated. Right now ~99% is binded so you do not need to modify anything.

Thu, 2012-05-24 10:04
Sergey

I have recompiled PyRosetta. But it seems that the recompiled version may conflict with the rosetta_database in the precompiled PyRosetta package. So I have to use the database in Rosetta3.4. Anyway, it seems OK now.

Fri, 2012-05-25 08:58
xfliu

The version of rosetta_database need to match version of rosetta_source that you used to build PyRosetta, so if you say updated rosetta from SVN (or database from SVN) then you will need to sync them before it will work.

But it look like you already figured that out.

Best,

Fri, 2012-05-25 11:05
Sergey

Sorry Sergey, but if I understand you correctly, what I need to do is : 1. Modify the Rosetta source codes as I need; 2. Just recompile the python bindings according to building.txt without modifying IncludeDict. Is it correct? I'm using Rosetta3.4 and I find the IncludeDict file is used to decide which modules are going to be binded. But it seems that ElectronDensityAtomwise namespace is not in the IncludeDict attached with Rosetta3.4.

Cheers

Thu, 2012-05-24 10:26
xfliu

Sergey, I have compiled the PyRosetta as you said. No need to modify the IncludeDict and nearly all of the modules are binded. Sorry for the silly questions above.

Fri, 2012-05-25 05:19
xfliu