write_geometries#
- write_geometries(geometries, file_path, *, format='star', shape=None, sampling=None, relion_5_format=False)[source]#
Export geometries to file.
- Parameters:
- geometrieslist of Geometry
Geometries to export.
- file_pathstr or list of str
Single string merges all geometries into one file; a list writes one file per geometry and must match
geometriesin length.- formatstr
star,tsv,xyz,ndjson(points);obj,stl,ply,tsi,q(meshes);mrc,em,h5(volumes).- shapetuple of (int, int, int), optional
Volume grid for volume formats; origin for RELION-5 centering.
- samplingfloat, optional
Sampling override.
- relion_5_formatbool, optional
Origin-centered RELION-5 STAR output.