# Path: q2_types/plugin_setup.py



import skbio.io
import qiime2.plugin.model as model
from ..plugin_setup import plugin
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------




class LSMatFormat(model.TextFileFormat):
    def sniff(self):
        sniffer = skbio.io.io_registry.get_sniffer('lsmat')

# Path: q2_types/plugin_setup.py



# Path: q2_types/distance_matrix/_format.py
import skbio.io
import qiime2.plugin.model as model
from ..plugin_setup import plugin

# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------




class LSMatFormat(model.TextFileFormat):
    def sniff(self):
        sniffer = skbio.io.io_registry.get_sniffer('lsmat')

        return sniffer(str(self))[0]