leafcutter icon indicating copy to clipboard operation
leafcutter copied to clipboard

BUG report: cluster_ensemblID == "." should be cluster_ensemblID <- "." in line 201 of prepare_results.R

Open wong-ziyi opened this issue 4 years ago • 5 comments

error message if cluster_ensemblID == "." in line 201 of prepare_results.R :

Error: Problem with `mutate()` column `ensemblID`.
ℹ `ensemblID = ifelse(is.na(ensemblID), ".", ensemblID)`.
ℹ `ensemblID` must be size 24 or 1, not 0.
Backtrace:
  █
1. ├─`%<>%`(...)
2. ├─dplyr::mutate(...)
3. ├─dplyr:::mutate.data.frame(...)
4. │ └─dplyr:::mutate_cols(.data, ..., caller_env = caller_env())
5. │   ├─base::withCallingHandlers(...)
6. │   └─mask$eval_all_mutate(quo)
7. └─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
8.   └─rlang::exec(abort, class = class, !!!data)
Execution halted

wong-ziyi avatar Sep 18 '21 07:09 wong-ziyi

I am also facing the same issue. Any solution?

abhilashdasari avatar Aug 20 '23 19:08 abhilashdasari

which version of R are you using? I don't see that error when running prepare_results.R

jackhump avatar Aug 21 '23 19:08 jackhump

I am using R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"

abhilashdasari avatar Aug 22 '23 03:08 abhilashdasari

can you try changing line 201 to

cluster_ensemblID <- "."

and report back if that fixes the issue? I can make a pull request for it.

jackhump avatar Aug 22 '23 17:08 jackhump

It worked. Thanks a lot. I have created a pull request.

Along with that, I wrote a small description of this error.
Correct it if anything is wrong.

abhilashdasari avatar Aug 23 '23 05:08 abhilashdasari