Abstract Base Classes
nplinker.metabolomics.abc
¶
SpectrumLoaderBase
¶
MolecularFamilyLoaderBase
¶
Bases: ABC
Abstract base class for MolecularFamilyLoader.
get_mfs
abstractmethod
¶
get_mfs(keep_singleton: bool) -> list[MolecularFamily]
Get MolecularFamily objects.
Parameters:
-
keep_singleton
(bool
) –True to keep singleton molecular families. A singleton molecular family is a molecular family that contains only one spectrum.
Returns:
-
list[MolecularFamily]
–A sequence of MolecularFamily objects.