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

error: unhandled exception: invalid integer: 0.065 [ValueError] #174

Closed
asmlgkj opened this issue Apr 20, 2022 · 3 comments
Closed

error: unhandled exception: invalid integer: 0.065 [ValueError] #174

asmlgkj opened this issue Apr 20, 2022 · 3 comments

Comments

@asmlgkj
Copy link

asmlgkj commented Apr 20, 2022

Thanks a lot for this great tool.
I found it can cause error, if mean depth is low, for example my mean depth is 0.65, so if I want to get the 0.1x Uniformity,
command

mosdepth --fast-mode --by xx.bed -t 4 --thresholds 0.065 -Q 30
it will give such error


this situation maybe also in wgs data, which the mean depth is very low. my above example is a low quality ngs panel data
@asmlgkj asmlgkj changed the title rror: unhandled exception: invalid integer: 0.065 [ValueError] error: unhandled exception: invalid integer: 0.065 [ValueError] Apr 20, 2022
@brentp
Copy link
Owner

brentp commented Apr 20, 2022

Hi, certainly the error message could be improved, but the help for --thresholds is:

for each interval in --by, write number of bases covered by at
                                least threshold bases. Specify multiple integer values separated
                                by ','.

so it indicates that you need to use integer values.

@asmlgkj
Copy link
Author

asmlgkj commented Apr 20, 2022

yes, but if that, the integer wiill be 0, so the 0.1x Uniformity will be 100%, which is not right;
for very low sequence depth data, this can happen

@brentp
Copy link
Owner

brentp commented Apr 25, 2022

thresholds is not the means to do what you want.
you can make a histogram of the mean depths in the 4th column of the output.regions file or you can use the summary.

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

2 participants