18 from typing
import Union
19 from pathlib
import Path
21 from .local_sequence_sample
import LocalSequenceSample
22 from ..network_sample
import NetworkSample
28 Represents the local custom Sample class
29 which is used for working with Other Task locally
32 def __init__(self) -> None:
33 NetworkSample.__init__(self)
38 Checks whether the file is a valid sequence file or not.
39 File is a valid sequence file if it ends with any of these extensions:
46 if not isinstance(path, Path):
50 supportedExtensions.extend([f
"{extension}.gz" for extension
in cls.
supportedExtensionssupportedExtensions()])
52 return any(path.name.endswith(extension)
for extension
in supportedExtensions)
List[str] supportedExtensions(cls)
bool isValidSequenceFile(cls, Union[Path, str] path)