OEReadMatchedPairAnalyzer
OEReadMatchedPairAnalyzer(fname: str, mmpindex: OEMatchedPairAnalyzer,
enableMerge: bool = False,
regenHKeys: bool = False) -> bool
OEReadMatchedPairAnalyzer(ifs: oeistream,
mmpindex: OEMatchedPairAnalyzer,
enableMerge: bool = False,
regenHKeys: bool = False) -> bool
This function reads the serialized contents of a matched pair index and populates the OEMatchedPairAnalyzer instance
as below. An enableMerge argument of false is used to indicate that the OEMatchedPairAnalyzer instance should be cleared
before the read, or true to indicate that the read index information should add (and update) existing data. If the regenHMemberKeys argument
is true and the index includes extra H-member indexing information, the serialized H-member information will be ignored and regenerated during the read.
mmp = oemedchem.OEMatchedPairAnalyzer()
if not oemedchem.OEIsMatchedPairAnalyzerFileType(mmpimport):
oechem.OEThrow.Fatal('Not a valid matched pair index input file, '+mmpimport)
elif not oemedchem.OEReadMatchedPairAnalyzer(mmpimport, mmp):
oechem.OEThrow.Fatal("Index deserialization failed")
else:
oechem.OEThrow.Info("Index deserialization complete")