Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Get rid of Hardcoded paths #23

wants to merge 8 commits into from

Conversation

Reeya123
Copy link

@Reeya123 Reeya123 commented Dec 3, 2024

  • 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

@Reeya123 Reeya123 requested a review from mariacuria December 3, 2024 17:52
@Reeya123 Reeya123 linked an issue Dec 3, 2024 that may be closed by this pull request
4 tasks
Copy link
Contributor

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".

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Polishing scripts
2 participants