Code Monkey home page Code Monkey logo

encode_re2g's People

Contributors

atancoder avatar mayasheth avatar

Stargazers

 avatar

Watchers

 avatar  avatar

encode_re2g's Issues

`write_powerlaw_params.py` tries to run `compute_powerlaw_fit_from_hic.py` from wrong location when called by `write_powerlaw_params.smk`

When running the snakemake workflow, on K562 Chr22 example, I get this error
python: can't open file '/home/oweyi/week_2/issue/encode_e2g_features/workflow/scripts/compute_powerlaw_fit_from_hic.py': [Errno 2] No such file or directory.

This occurs when my config_biosamples.tsv row contains HiC_dir, HiC_type, HiC_resolution but not HiC_gamma nor HiC_scale. My intention is that config should invoke compute_powerlaw_fit_from_hic.py to calculate, for the first run, the HiC parameters using the juicebox HiC folder.

This particular configuration triggers write_powerlaw_params.smk to run this shell command
python ABC/workflow/scripts/write_powerlaw_params.py --hic_dir ABC/example_chr/HiC_K562 --hic_type juicebox --hic_resolution 5000 --output_file results/HiC_Powerlaw/fade7e41/hic.powerlaw.tsv.

Since HiC_gamma and HiC_scale are not provided, the script runs write_powerlaw_params.py > exec_compute_powerlaw_fit_script.

This function tries to run the python script compute_powerlaw_fit_from_hic.py from the encode_e2g_features/workflow/scripts folder rather than the correct encode_e2g_features/ABC/workflow/scripts folder.

The current workaround I'm using is to shove in the correct path in the write_powerlaw_params.py > exec_compute_powerlaw_fit_script function with __file__ dunder variable under the assumption that write_powerlaw_params.py and compute_powerlaw_fit_from_hic.py will be in the same folder.

Attached is the

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.