detector Module

class mobyle.data.tools.detector.BioFormat[source]

Bases: object

Generic detector for an input sequence. Call all registered detectors until one answers

detect(filename)[source]

Try to detect the format of the input file :params filename: file to detect :type filename: str :return: tuple (format,mimetype)

detect_by_extension(filename)[source]

Try to detect the format of the input file based on extension :params filename: file to detect :type filename: str :return: format

detectors = []
static register(detector)[source]

Register a format detector :param detector: detector class :type detector: Class :return: format of the file

class mobyle.data.tools.detector.SquizzDetector[source]

Bases: object

Detector using Squizz

detect(filename)[source]

Detect method

Project Versions

This Page