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

Invalid divide value in brie_MH_Heuristic #16

Open
trevortknguyen opened this issue Jul 25, 2018 · 0 comments
Open

Invalid divide value in brie_MH_Heuristic #16

trevortknguyen opened this issue Jul 25, 2018 · 0 comments

Comments

@trevortknguyen
Copy link

Dearest Yuanhua,

Running brie with a specific bam file generates this error. Other bam files that I have tried work perfectly fine.

Traceback (most recent call last):                                                                      
  File "/home/user/anaconda3/envs/brie-env/bin/brie", line 11, in <module>
    sys.exit(main())
  File "/home/user/anaconda3/envs/brie-env/lib/python2.7/site-packages/brie/brie.py", line 268, in main
    M=M,  Mmin=initial, gap=gap, nproc=nproc)
  File "/home/user/anaconda3/envs/brie-env/lib/python2.7/site-packages/brie/models/model_brie.py", line 451, in brie_MH_Heuristic
    FPKM_all = Cnt_all / tranLen.reshape(-1, 1) / total_count * 10**9
RuntimeWarning: invalid value encountered in divide 

I believe that this is some sort of divide by zero error that prevents the rest of the analysis from running. No output files are created.

I have yet to fully investigate your code myself, but would there be any conditions that could cause one of the divisors to be zero?

Regards,
Trevor

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