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 in as.vector(x) : no method for coercing this S4 class to a vector #7

Open
ramiromagno opened this issue Feb 27, 2020 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ramiromagno
Copy link
Owner

Note to self:

library(tidyverse)
library(gwasrapidd)
library(GenomicRanges)
gwasrapidd::get_associations(variant_id = "rs1800629", efo_trait = "cancer")

works seemingly fine.

On the other hand,

library(tidyverse)
library(GenomicRanges)
library(gwasrapidd)
gwasrapidd::get_associations(variant_id = "rs1800629", efo_trait = "cancer")

result in this error:

> gwasrapidd::get_associations(variant_id = "rs1800629", efo_trait = "cancer")
Error in as.vector(x) : no method for coercing this S4 class to a vector

Which is, probably, a symptom of S4 dispatch using the wrong generic.

See this discussion here: https://r.789695.n4.nabble.com/Conflicting-definitions-for-function-redefined-as-S4-generics-td4687570.html.

@ramiromagno ramiromagno self-assigned this Feb 27, 2020
@ramiromagno ramiromagno added bug Something isn't working help wanted Extra attention is needed labels Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant