quartzbio.utils.files module

quartzbio.utils.files.check_gzip_path(file_path)

Check if we have a gzipped file path

quartzbio.utils.files.edp_path(path: str)

normalize OS path to EDP remote path

quartzbio.utils.files.edp_path_join(*edp_paths)
quartzbio.utils.files.get_home_dir()
quartzbio.utils.files.separate_filename_extension(filename)

Separates filename into base name and extension while handling compressed filename extensions.

Parameters:

filename (str) – A filename, can also be a full filepath.

Returns:

Base filename (or path)

without extension.

extension (str): File extension beginning

with leading period (e.g. ‘.txt’).

compression (str): Compression extension

with leading period (e.x. ‘.gz’).

Return type:

base name (str)