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

Exception: R error: expecting float, got [1] NaN #4

Open
jpod1010 opened this issue Feb 26, 2019 · 0 comments
Open

Exception: R error: expecting float, got [1] NaN #4

jpod1010 opened this issue Feb 26, 2019 · 0 comments

Comments

@jpod1010
Copy link

When running ROCker plot using the command

ROCker plot -k AmoA_A_v2.125.rocker -b input_file_blast -o test_rocker_plot

I receive the error

Exception: R error: expecting float, got [1] NaN
/usr/local/lib/ruby/gems/2.6.0/gems/bio-rocker-1.2.0/lib/rocker/rinterface.rb:28:in run' /usr/local/lib/ruby/gems/2.6.0/gems/bio-rocker-1.2.0/lib/rocker/rocdata.rb:128:in rrun'
/usr/local/lib/ruby/gems/2.6.0/gems/bio-rocker-1.2.0/lib/rocker/step/plot.rb:107:in plot!' /usr/local/lib/ruby/gems/2.6.0/gems/bio-rocker-1.2.0/bin/ROCker:363:in <top (required)>'
/usr/local/bin/ROCker:23:in load' /usr/local/bin/ROCker:23:in

'

But the plot is still generated.

If instead i use

ROCker plot -k AmoA_A_v2.125.rocker -b _input_file_blast -o test_rocker_plot -stats-impact

I receive the error

Plotting matches.
Exception: R failed on command:
plot(1, t='n', xlim=c(0.5,216+0.5), ylim=range(x$V4)+c(-0.04,0.04)*diff(range(x$V4)), xlab='', ylab='Bit score', xaxs='i', xaxt='n');

Error:
Error in plot.window(...) : need finite 'ylim' values
Calls: plot -> plot.default -> localWindow -> plot.window
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf
3: In min(x) : no non-missing arguments to min; returning Inf
4: In max(x) : no non-missing arguments to max; returning -Inf
Execution halted

/usr/local/lib/ruby/gems/2.6.0/gems/bio-rocker-1.2.0/lib/rocker/rinterface.rb:21:in run' /usr/local/lib/ruby/gems/2.6.0/gems/bio-rocker-1.2.0/lib/rocker/rocdata.rb:128:in rrun'
/usr/local/lib/ruby/gems/2.6.0/gems/bio-rocker-1.2.0/lib/rocker/step/plot.rb:50:in plot!' /usr/local/lib/ruby/gems/2.6.0/gems/bio-rocker-1.2.0/bin/ROCker:363:in <top (required)>'
/usr/local/bin/ROCker:23:in load' /usr/local/bin/ROCker:23:in

'

and nothing is plotted

This seems to be an issue in R, but i am not totally sure. Let me know if you have any guidance for how to deal with this.

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