You are here

Fundamental methods: pose.residue().total_atom(), pose.atom(#) ?

2 posts / 0 new
Last post
Fundamental methods: pose.residue().total_atom(), pose.atom(#) ?
#1

Are there any methods that can return the total number of atoms in the pose? I am trying to do a simple operation, like shift a peptide some distance along a certain vector, and find myself unable to loop over atoms in the simulation.

Is there a resource that lists all the methods accessible from the Rosetta python library?

Post Situation: 
Mon, 2010-11-01 10:53
msellers

Did you try residue.natoms() and/or residue_type.natoms()? I haven't looked at the python but that's the name of the call in C++.

There is no pose-based all atoms accessor for atoms, you'll need to use the residue level.

Separately, as a general rule, you should probably not be looping through atoms and resetting their 3d coordinates. You should instead determine the single DOF in the atom tree you need to change to get the alteration you want and change that instead. For example, you'd alter the jump connecting the peptide to (whatever), rather than altering the positions of each atom in the peptide.

Tue, 2010-11-02 07:02
smlewis