aboutsummaryrefslogtreecommitdiff
path: root/gn3/fs_helpers.py
AgeCommit message (Collapse)Author
2024-09-12Fix pylint errors.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-12Make sure TMPDIR directories exist!Pjotr Prins
2024-09-12Getting Rqtl to run on fallbackPjotr Prins
2024-09-12assert_paths_exist: make throw_error optionalPjotr Prins
2024-09-12Move assert_paths_exist into fs_helpersPjotr Prins
2024-09-12Getting Rqtl to run on fallbackPjotr Prins
2024-09-12assert_paths_exist: make throw_error optionalPjotr Prins
2024-09-12Move assert_paths_exist into fs_helpersPjotr Prins
2022-06-21gn3: fs_helpers: Fix pylint errorsBonfaceKilz
* gn3/fs_helpers.py: Remove unused "pathlib" import. (cache_ipfs_file): Disable "unused-argument" warting.
2022-06-21gn3: fs_helpers: Remove ipfshttpclientBonfaceKilz
This library pollutes the Genenetwork2 profile with an old version "dataclasses" thereby causing it to fail.
2022-03-11Fix some linting issuesFrederick Muriuki Muriithi
2022-02-24gn3: Explicitly specify UTF-8 to be the file encoding.Arun Isaac
When the encoding is not specified explicitly, the system default encoding is used. This is not recommended. * gn3/computations/ctl.py (call_ctl_script), gn3/computations/gemma.py (generate_pheno_txt_file), gn3/computations/parsers.py (parse_genofile), gn3/computations/partial_correlations.py (partial_correlations_fast), gn3/computations/rqtl.py (process_rqtl_output, process_perm_output), gn3/computations/wgcna.py (dump_wgcna_data, call_wgcna_script), gn3/fs_helpers.py (jsonfile_to_dict): Explicitly specify UTF-8 to be the file encoding. * tests/unit/computations/test_gemma.py (TestGemma.test_generate_pheno_txt_file), tests/unit/computations/test_wgcna.py (TestWgcna.test_create_json_file): Test for call to open with encoding='utf-8' argument.
2022-02-21Fix minor issues introduced while fixing linting errorsFrederick Muriuki Muriithi
2022-02-21Fix a myriad of linter issuesFrederick Muriuki Muriithi
* Use `with` in place of plain `open` * Use f-strings in place of `str.format()` * Remove string interpolation from queries - provide data as query parameters * other minor fixes
2021-05-13Rename file_utils to fs_helpersBonfaceKilz
Generally avoid naming things with a "utils" prefix/ suffix since it encourages contributors to dump any new functions there; and over time, as the code grows, things get messy...