Closed dongbohu closed 3 years ago
I agree, I think that using something like pathlib, which sounds similar to what you're suggesting, would be preferable to the current format of the config file. Since this project is coming to a close, I will leave the config format as is. But I plan to adapt one of the alternative approaches in my future work
Right now all config files in
configs/
directory are tab-delimited files. It is not very friendly to work with. For example, it's very easy to confusetab
delimiter with space characters.Two alternatives that I can think of: (1) Change all config files into Python module, for example,
config_test.tsv
can be changed into:then the notebooks that use them can simply do
from configs.config_test import local_dir, ...
, this seems much more maintainable and flexible, such as:The only issue in this solution is when another software package needs these config parameters, such as:
(at the end of
human_analysis/1_process_recount2_data.ipynb
)In this scenario, we probably would have to build a dict with all config parameters needed by
train_vae_modules.train_vae
, and pass it in as the first argument.(2) Another alternative is to use another format such as
ini
oryaml
. This is similar toformat
but more flexible.I prefer the first alternative.