ucagenomix / isoswitch

Other
2 stars 2 forks source link

Caused by error in `fct_relevel()` #2

Open reJELIN opened 1 year ago

reJELIN commented 1 year ago

Hello,

i'm getting an error when using isoswitch_report function. I'm not sure to understand where from the error is coming.

here is the output of my terminal

[1] "Locus"
[1] "Junction"
[1] "umi counts"
Error in `mutate()`:
i In argument: `cell_type = fct_relevel(cell_type, levels = celltype_order)`.
Caused by error in `fct_relevel()`:
! Arguments in `...` must be passed by position, not name.
x Problematic argument:
* levels = celltype_order
Run `rlang::last_trace()` to see where the error occurred
> `rlang::last_trace()
<error/dplyr:::mutate_error>
Error in `mutate()`:
i In argument: `cell_type = fct_relevel(cell_type, levels = celltype_order)`.
Caused by error in `fct_relevel()`:
! Arguments in `...` must be passed by position, not name.
x Problematic argument:
* levels = celltype_order
---
Backtrace:
     x
  1. +-isoswitch::isoswitch_report(...)
  2. | \-isoswitch::._isoswitch_report.umi_counts(...)
  3. |   +-dplyr::mutate(...)
  4. |   \-dplyr:::mutate.data.frame(...)
  5. |     \-dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  6. |       +-base::withCallingHandlers(...)
  7. |       \-dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  8. |         \-mask$eval_all_mutate(quo)
  9. |           \-dplyr (local) eval()
 10. \-forcats::fct_relevel(cell_type, levels = celltype_order)
yuanwsy commented 1 year ago

have you fixed this problem?If so,may I have the way to

Hello,

i'm getting an error when using isoswitch_report function. I'm not sure to understand where from the error is coming.

here is the output of my terminal

[1] "Locus"
[1] "Junction"
[1] "umi counts"
Error in `mutate()`:
i In argument: `cell_type = fct_relevel(cell_type, levels = celltype_order)`.
Caused by error in `fct_relevel()`:
! Arguments in `...` must be passed by position, not name.
x Problematic argument:
* levels = celltype_order
Run `rlang::last_trace()` to see where the error occurred
> `rlang::last_trace()
<error/dplyr:::mutate_error>
Error in `mutate()`:
i In argument: `cell_type = fct_relevel(cell_type, levels = celltype_order)`.
Caused by error in `fct_relevel()`:
! Arguments in `...` must be passed by position, not name.
x Problematic argument:
* levels = celltype_order
---
Backtrace:
     x
  1. +-isoswitch::isoswitch_report(...)
  2. | \-isoswitch::._isoswitch_report.umi_counts(...)
  3. |   +-dplyr::mutate(...)
  4. |   \-dplyr:::mutate.data.frame(...)
  5. |     \-dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  6. |       +-base::withCallingHandlers(...)
  7. |       \-dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  8. |         \-mask$eval_all_mutate(quo)
  9. |           \-dplyr (local) eval()
 10. \-forcats::fct_relevel(cell_type, levels = celltype_order)

I also met the same problem,have you fixed it?

reJELIN commented 1 year ago

i did a fork of this project and i just remove the forcats::fct_relevel function it doesn't seems to be a problem as it just reorder the celltype_order.