-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of Hardcoded paths #23
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"/data/shared/repos/biomuta-old/downloads" is a symlink to "/data/shared/biomuta/downloads", and "/data/shared/repos/biomuta-old/generated_datasets" is a symlink to "/data/shared/biomuta/generated/datasets".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please revert to using utils and call get_config() to get to the config file? I got this method from Sean, it allows me to avoid writing "with open <...> json.load" in every script.
Refactored scripts where paths are replaced with those dynamically fetched from config.json
Made changes to below scripts:
Everything in /data/shared/repos/biomuta-old/pipeline/download_step1/cbioportal
Everything in /data/shared/repos/biomuta-old/pipeline/convert_step2/cbioportal
In /data/shared/repos/biomuta-old/pipeline/convert_step2/liftover:
1_chr_pos_to_bed.py
2_liftover.sh
Updated config.json with a clear naming structure for paths and the added new paths