Differences between revisions 5 and 6
Revision 5 as of 2012-01-24 21:26:49
Size: 1030
Editor: jgalaz
Comment:
Revision 6 as of 2012-01-24 21:29:27
Size: 1008
Editor: jgalaz
Comment:
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
{
rand_orient = OrientGens.get("rand",{"n":1}) #This fetches the orientation generator
c1_sym = Symmetries.get("c1") #This generates the asymmetric unit from which you wish to generate a random orientation
t3d = rand_orient.gen_orientations(c1_sym)[0] #This generates a random orientation using the orientation generator and asymmetric unit specified
t = {"transform":t3d} #This makes the orientation into a Transform object that can be applied to images
}
{{{
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

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

t = {"transform":t3d} #Makes the orientation into a Transform object that can be applied to images
}}}

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 with three random values for EULER ANGELS (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

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

t = {"transform":t3d}                           #Makes the orientation into a Transform object that can be applied to images  

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