I'm trying to create annotation for mouse RNAseq data. When I run the getBM() function I get the follwoing error. I thought it could be the filter function but I tried reinstalling dplyr. The code had worked a week ago. Does any one have a suggestion on how to troubleshoot this?
mart <- biomaRt::useMart(biomart = "ENSEMBL_MART_ENSEMBL",
dataset = "mmusculus_gene_ensembl",
host = 'ensembl.org')
t2g <- biomaRt::getBM(attributes = c("ensembl_transcript_id", "ensembl_gene_id",
"external_gene_name","transcript_version"), mart = mart)
Output:
Error in UseMethod("filter_") :
no applicable method for 'filter_' applied to an object of class "c('tbl_SQLiteConnection', 'tbl_dbi', 'tbl_sql', 'tbl_lazy', 'tbl')"
Thank you. Indeed, after updating R, the code works fine. Thanks again.