MMCIFWriter β€” File Writing

class sloth.mmcif.writer.MMCIFWriter[source]

Bases: BaseWriter

High-performance mmCIF writer using gemmi backend with SLOTH’s elegant API.

This writer uses gemmi’s optimized C++ backend for fast writing while maintaining the exact same API as the original SLOTH writer.

__init__()[source]

Initialize the MMCIFWriter with gemmi backend.

write(file_obj, mmcif)[source]

Write SLOTH data structure to file using gemmi backend

Parameters:
  • file_obj (IO) – The file object to write to

  • mmcif (MMCIFDataContainer) – SLOTH MMCIFDataContainer

Return type:

None

Returns:

None