I am using PyRosetta to minimize several complexes and obtain the rosetta calculated energy values. In order to obtain all the rosetta scoring terms, I am using the get_fa_scorefxn function. Whereas I want to retain all the scoring terms, the only option that seems available to see all of them is with the following lines:
scorefxn = get_fa_scorefxn()
pose = pose_from_pdb(<minimized_complex_pdb>)
HOWEVER, the scorefxn.show(pose) prints the terms to the terminal and I am not able to extract the terms within my python code. I tried 'pose.energies().total_energies()[fa_atr]' as is recommended in the pyrosetta documentation appendix A here, but that gives me a type error. I even tried to reassign stdout to a file so scorefxn.show(pose) prints to it, but it doesn't. What is a way around this or am I missing something?