Writers#

class pycomsa.StockholmWriter#

A writer for CoMSA-compressed Stockholm files.

write(msa, fast=False)#

Write a MSA to the compressed file.

Parameters:
  • msa (MSA) – The multiple sequence alignment to compress and append to the file.

  • fast (bool) – Set to True to use move to front (MTF) instead of weighted frequency count (WFC) in the compression pipeline. This accelerates compression and decompression at the cost of compression efficiency.