em_map_utils.util

util.py

Author:

Ardan Patwardhan

Affiliation:

EMBL-EBI, Wellcome Genome Campus, CB10 1SD, UK

Date:

31/07/2025

Description:

Utility functions used by various modules.

Functions

save_map(outfile, map_grid, mrc[, voxel_size])

Save grid as a mrc file copying key header values from an existing

Module Contents

em_map_utils.util.save_map(outfile, map_grid, mrc, voxel_size=None)

Save grid as a mrc file copying key header values from an existing mrc file.

Parameters:
  • outfile – Name of file to save map to.

  • map_grid – Map grid to save.

  • mrc – MRC file with header information to copy.

  • voxel_size – Optional voxel size that overrides the value from the input mrc file.

Returns:

No return value.