See the cryojax.image.operators.FourierGaussian function. This can be added as an optional field to the RelionParticleStack and loaded in if the b factor is in the STAR file, and left as None otherwise. For example the particle stack can be updated to be:
from typing import Optional
from cryojax.image.operators import FourierGaussian
class RelionParticleStack(AbstractParticleStack):
# ... other fields
envelope: Optional[FourierGaussian]
def __init__(..., envelope: Optional[FourierGaussian] = None): # plus other arguments
# ... other stuff
self.envelope = envelope
See the
cryojax.image.operators.FourierGaussian
function. This can be added as an optional field to theRelionParticleStack
and loaded in if the b factor is in the STAR file, and left asNone
otherwise. For example the particle stack can be updated to be: