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

KeyError in the process of merging biological replicates #12

Open
kyzhu opened this issue May 19, 2023 · 0 comments
Open

KeyError in the process of merging biological replicates #12

kyzhu opened this issue May 19, 2023 · 0 comments

Comments

@kyzhu
Copy link

kyzhu commented May 19, 2023

Hi XiaoTao,

Nice and easy to use pipeline. However I got KeyError occasionally in runHiC filtering after printing Merge biological replicates .... The error did not always occur - some samples work fine while the others not. Traceback showed the error occurs in

  File "runHiC", line 834, in <module>
    run(args, commands)
  File "runHiC", line 284, in run
    args.func(args, commands)
  File "runHiC", line 670, in filtering
    stats_pool, outpath = enzyme_level(filenames, outpre, keys, outkey, stats_pool, tmpdir, nproc_in, nproc_out, args.memory)
  File "/lib/python3.7/site-packages/runHiC/filtering.py", line 185, in enzyme_level
    merge_stats(stats_pool, keys, outkey)
  File "/lib/python3.7/site-packages/runHiC/filtering.py", line 165, in merge_stats
    stats_pool[outkey] = deepcopy(stats_pool[keys[0]])
KeyError: (<sample name>, <enzyme name>, <replicate name>)

So is there any way I can get around the error by manually running some commands, or it should be easy to debug and fix?

Thanks!

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

No branches or pull requests

1 participant