diff options
author | Pjotr Prins | 2024-03-24 09:41:55 +0100 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-12 07:36:54 -0500 |
commit | 1264410b515a755eb3a683510ad37125668aa741 (patch) | |
tree | da4edd08758c62a61c5a2203ba1561c718b0305d /gn3/computations | |
parent | bbca8fe96bd2176f300cab8746dace6fd2323320 (diff) | |
download | genenetwork3-1264410b515a755eb3a683510ad37125668aa741.tar.gz |
Move assert_paths_exist into fs_helpers
Diffstat (limited to 'gn3/computations')
-rw-r--r-- | gn3/computations/gemma.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gn3/computations/gemma.py b/gn3/computations/gemma.py index f97fa6d..2c367ff 100644 --- a/gn3/computations/gemma.py +++ b/gn3/computations/gemma.py @@ -41,17 +41,6 @@ def generate_pheno_txt_file(trait_filename: str, return f"{tmpdir}/gn2/{trait_filename}" -def assert_paths_exist(paths: ValuesView) -> bool: - """Given a list of PATHS, throw error if any of them do not exist.""" - for path in paths: - if not os.path.isfile(path): - if throw_error: - raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), path) - else: - return False - return True - - # pylint: disable=R0913 def generate_gemma_cmd(gemma_cmd: str, output_dir: str, |