annotation - biomaRt - Error in UseMethod
0
0
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')"
gene SNP R • 3.8k views
ADD COMMENT
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

I have not had any problem here:

  ensembl_gene_id external_gene_name   gene_biotype
1 ENSG00000162595             DIRAS3 protein_coding
2 ENSG00000140279              DUOX2 protein_coding
3 ENSG00000140279              DUOX2 protein_coding
                                              description chromosome_name
1 DIRAS family GTPase 3 [Source:HGNC Symbol;Acc:HGNC:687]               1
2      dual oxidase 2 [Source:HGNC Symbol;Acc:HGNC:13273]              15
3      dual oxidase 2 [Source:HGNC Symbol;Acc:HGNC:13273]              15
  start_position end_position transcript_gencode_basic
1       68045886     68051631            GENCODE basic
2       45092650     45114172            GENCODE basic
3       45092650     45114172

I am using R 4.0.3 and biomaRt v2.45.9

ADD REPLY
0
Entering edit mode

I am facing similar error. Could you get a solution for above?

ADD REPLY
0
Entering edit mode

Please show the exact code that you're running, the error(s) produced, and also the output of sessionInfo(). Thank you.

ADD REPLY

Login before adding your answer.

Traffic: 2002 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6