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 at 'calculating bin metrics' when only one scan has been selected #58

Open
elliotfontaine opened this issue Mar 25, 2024 · 0 comments

Comments

@elliotfontaine
Copy link

I'm pretty sure it's cause by the fact that only one scan is selected (18:18), as lowering the %TIC threshold solve the issue.

The error should at least me more explicit.

binneR v2.6.4 Mon Mar 25 16:34:47 2024
________________________________________________________________________________
Scans: 18:18 
________________________________________________________________________________

Reading raw data
Gathering bins
Removing single scan events
Averaging intensities across scans
Calculating bin metrics
Error in `all_of()`:
! Can't subset columns that don't exist.
✖ Columns `idx`, `fileName`, `class`, `polarity`, and `bin` don't exist.
Backtrace:
     ▆
  1. ├─binneR::binneRlyse(file, info, parameters)
  2. │ └─x %>% spectralBinning(verbose = verbose)
  3. ├─binneR:::spectralBinning(., verbose = verbose)
  4. ├─binneR:::spectralBinning(., verbose = verbose)
  5. │ └─binneR:::calcBinMeasures(pks, cls)
  6. │   └─... %>% ...
  7. ├─dplyr::summarise(...)
  8. ├─dplyr::group_by_at(...)
  9. │ └─dplyr:::manip_at(...)
 10. │   └─dplyr:::tbl_at_syms(...)
 11. │     └─dplyr:::tbl_at_vars(tbl, vars, .include_group_vars = .include_group_vars, error_call = error_call)
 12. │       └─tidyselect::vars_select(tibble_vars, !!!vars)
 13. │         └─tidyselect:::eval_select_impl(...)
 14. │           ├─tidyselect:::with_subscript_errors(...)
 15. │           │ └─rlang::try_fetch(...)
 16. │           │   └─base::withCallingHandlers(...)
 17. │           └─tidyselect:::vars_select_eval(...)
 18. │             └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
 19. │               └─tidyselect:::eval_c(expr, data_mask, context_mask)
 20. │                 └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
 21. │                   └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
 22. │                     └─tidyselect:::eval_context(expr, context_mask, call = error_call)
 23. │                       ├─tidyselect:::with_chained_errors(...)
 24. │                       │ └─rlang::try_fetch(...)
 25. │                       │   ├─base::tryCatch(...)
 26. │                       │   │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 27. │                       │   │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 28. │                       │   │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 29. │                       │   └─base::withCallingHandlers(...)
 30. │                       └─rlang::eval_tidy(as_quosure(expr, env), context_mask)
 31. ├─tidyselect::all_of(c("idx", "fileName", cls, "polarity", "bin"))
 32. │ └─tidyselect:::as_indices_impl(x, vars = vars, strict = TRUE)
 33. │   └─tidyselect:::chr_as_locations(x, vars, call = call, arg = arg)
 34. │     └─vctrs::vec_as_location(...)
 35. └─vctrs (local) `<fn>`()
 36.   └─vctrs:::stop_subscript_oob(...)
 37.     └─vctrs:::stop_subscript(...)
 38.       └─rlang::abort(...)
Exécution arrêtée
2024-03-25T16:34:48+01:00 CRITICAL - failed/ERR
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