Closed jburos closed 7 years ago
I use the format-string in our tcga_data.py within the lung-cohort, so that the cache-dir is named according to the tumor type (which I think we call "disease": luad
vs lusc
).
For example, in that file we have:
def load_tcga(disease, legacy_bams=True, cache_dir="cache-new-tcga-{disease}", ... ):
...
cache_dir = get_cache_dir(cache_dir=cache_dir, cache_root_dir=cache_root_dir, disease=disease)
In that case, I computed the cache-dir outside of the cohort & passed it in; this is an attempt to support similar functionality within the cohort object.
Let me know what you think & if I should add more detail on this to issue #214.
👍 LGTM
Adding cache_root_dir per #214