Entering edit mode
3.4 years ago
Hi,
I try run the getBM from biomaRt but a error was returned.
ensembl=useMart("ENSEMBL_MART_ENSEMBL")
ensembl = useDataset("hsapiens_gene_ensembl",mart=ensembl)
list <- c("DUOX2", "DIRAS3")
x <- getBM(attributes = c("ensembl_gene_id","external_gene_name", "gene_biotype",
"description", "chromosome_name","start_position","end_position",
"transcript_gencode_basic"),
filters ='external_gene_name', values=list,mart = ensembl)
Error in UseMethod("filter_") :
método não aplicável para 'filter_' aplicado a um objeto de classe "c('tbl_SQLiteConnection', 'tbl_dbi', 'tbl_sql', 'tbl_lazy', 'tbl')"
Your code seems Ok to me and using that I got the intended result. Mybe you need to update some of your package installation (see this post )or detach all package except biomaRt, and do analysis.
I have not had any problem here:
I am using R 4.0.3 and biomaRt v2.45.9
I am facing similar error. Could you get a solution for above?
Please show the exact code that you're running, the error(s) produced, and also the output of
sessionInfo()
. Thank you.