tomodrgn.dataset.TiltSeriesMRCData#

class TiltSeriesMRCData(ptcls_star: TiltSeriesStarfile, star_random_subset: int = -1, datadir: str | None = None, lazy: bool = True, norm: tuple[float, float] | None = None, invert_data: bool = False, window: bool = True, window_r: float = 0.75, window_r_outer: float = 0.95, recon_dose_weight: bool = False, recon_tilt_weight: bool = False, l_dose_mask: bool = False, constant_mintilt_sampling: bool = False, sequential_tilt_sampling: bool = False)[source]#

Bases: Dataset

Class for loading and accessing image, pose, ctf, and weighting data associated with a tomodrgn.starfile.TiltSeriesStarfile instance.

Methods

get

lazy_particles_estimate_normalization

Estimate mean and standard deviation of particles when lazy is True.

load

Instantiate a dataset from a config.pkl

lazy_particles_estimate_normalization() list[float][source]#

Estimate mean and standard deviation of particles when lazy is True.

Returns:

norm: list of floats representing mean and standard deviation to apply to lazy-loaded particles

classmethod load(config: str | dict[str, dict])[source]#

Instantiate a dataset from a config.pkl

Parameters:

config – path to config.pkl or preloaded config.pkl dictionary as generated by tomodrgn

Returns:

TiltSeriesMRCData instance