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

Caused by error in fct_relevel() #2

Open
reJELIN opened this issue Apr 21, 2023 · 2 comments
Open

Caused by error in fct_relevel() #2

reJELIN opened this issue Apr 21, 2023 · 2 comments

Comments

@reJELIN
Copy link

reJELIN commented Apr 21, 2023

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
Copy link

yuanwsy commented Oct 10, 2023

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
Copy link
Author

reJELIN commented Oct 10, 2023

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.

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

2 participants