Differences between revisions 2 and 9 (spanning 7 versions)
Revision 2 as of 2011-07-11 18:44:33
Size: 281
Editor: SteveLudtke
Comment:
Revision 9 as of 2012-01-24 21:36:46
Size: 1041
Editor: jgalaz
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 * ''--orientgen=eman:delta=2.0:inc_mirror=0''  * ''eman:delta=2.0:inc_mirror=0''

Note that the ''perturb'' option is on by default in the eman orientation generator, to reduce noise bias problems.

To get a RANDOM ORIENTATION __within a python script__ with three random values (one for each EULER ANGLE, from positions on "the sphere"), do the following:

{{{
rand_orient = OrientGens.get("rand",{"n":1}) #Fetches the orientation generator

c1_sym = Symmetries.get("c1") #Generates the asymmetric unit from which you wish
                                                #to generate a random orientation

rt = rand_orient.gen_orientations(c1_sym)[0] #Generates a random orientation (a Transform object)
                                                #using the generator and asymmetric unit specified


}}}

OrientGens

To get a current list of available orientation generators, please run e2help.py orientgens or for more detail, e2help.py orientgens -v 2.

A typical orientation generator looks like this:

  • eman:delta=2.0:inc_mirror=0

Note that the perturb option is on by default in the eman orientation generator, to reduce noise bias problems.

To get a RANDOM ORIENTATION within a python script with three random values (one for each EULER ANGLE, from positions on "the sphere"), do the following:

rand_orient = OrientGens.get("rand",{"n":1})    #Fetches the orientation generator

c1_sym = Symmetries.get("c1")                   #Generates the asymmetric unit from which you wish 
                                                #to generate a random orientation

rt = rand_orient.gen_orientations(c1_sym)[0]    #Generates a random orientation (a Transform object) 
                                                #using the generator and asymmetric unit specified 

EMAN2/Modular/OrientGens (last edited 2012-01-24 21:36:46 by jgalaz)