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: Edge vector must be monotonically non-decreasing. #29

Open
cvdelannoy opened this issue Dec 22, 2020 · 0 comments
Open

error: Edge vector must be monotonically non-decreasing. #29

cvdelannoy opened this issue Dec 22, 2020 · 0 comments

Comments

@cvdelannoy
Copy link

cvdelannoy commented Dec 22, 2020

Hi!

I'm loading my own trace files as stacked dats, and for some files I got this weird error message:

Edge vector must be monotonically non-decreasing.

I'm guessing it has something to do with extremely low E_FRET values, but I'm not sure. WIth some effort I traced the error back to +ebfret/+analysis/x_lim.m, line 38:

[h b] = hist(x, linspace(left(end), right(end), min(200, length(x)/10)));

The issue being that the linspace generates only NaNs, which the hist then can't handle. My matlab is very rusty and I'm unfamiliar with that left/right(end) syntax, but when I change it to this, my problem seems solved:

[h b] = hist(x, linspace(min(x), max(x), min(200, length(x)/10)));

I'm not sure if this is always giving the expected behavior but it seems alright in my cases. Here's a file to reproduce the error:

ebFRET_stacked.zip

Do you have an idea of why this happens? Should I make a pull request with this modification?

This happens on ubuntu 20.04 + MATLAB2020b

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