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

Add error to TransposeAssay() if a matrix object is supplied #87

Open
gabrielodom opened this issue Mar 23, 2020 · 0 comments
Open

Add error to TransposeAssay() if a matrix object is supplied #87

gabrielodom opened this issue Mar 23, 2020 · 0 comments
Assignees

Comments

@gabrielodom
Copy link
Owner

When we call the TransposeAssay() function on a matrix object, we gen an unintuitive error:

> TransposeAssay(some_matrix)
Error in data.frame(..., check.names = FALSE) : 
  arguments imply differing number of rows: 0, 82
> TransposeAssay(some_matrix, omeNames = "rowNames")
Error in class(transpose_df) <- class(assay_df) : 
  invalid to set the class to matrix unless the dimension attribute is of length 2 (was 0)

We need a better error to tell the user to turn the object into a data frame or tibble first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant