""" Skeleton class for importing files """
from pathlib import Path
from typing import Union
__all__ = ["get_dataset_path"]
[docs]def get_dataset_path(filename: Union[str, Path]) -> Path:
"""Return the filesystem path to the packaged data file.
Args:
filename (str, pathlib.Path) : The full name of the packaged data file.
Returns:
path (pathlib.Path) : The filesystem path to the packaged data file.
Examples
>>> from edgePy.data_import.data_import import get_dataset_path
>>> str(get_dataset_path("GSE49712_HTSeq.txt.gz")) # doctest:+ELLIPSIS
'.../edgePy/data/GSE49712_HTSeq.txt.gz'
"""
import edgePy
directory = Path(edgePy.__file__).expanduser().resolve().parent
return directory / "data" / filename