biomaRt::getSequence - Invalid type argument
1
2
Entering edit mode
4.4 years ago
mbk0asis ▴ 700

Hi, all!

I'm trying to download peptide sequence using biomaRt::getSequence() function.

The code I used is like below,

seq = getSequence(id = c("ENSP00000367848"), 
                  type = "ensembl", 
                  seqType = "peptide", 
                  mart = mart)

When I ran it, I got a following error.

Error in getSequence(id = c("ENSP00000367848"), type = "ensembl", seqType = "peptide",  : 
      Invalid type argument.  Use the listFilters function to select a valid type argument.

According to its vignette, "Supported types are hugo, ensembl, embl, entrezgene, refseq, ensemblTrans and unigene."

Why am I getting this error? Can you guys help me?

Thank you!

biomaRt R • 1.4k views
ADD COMMENT
4
Entering edit mode
4.4 years ago
Ram 44k

The type you need is emsembl_peptide_id. The list of supported types are not valid as exact string values, I think.

ADD COMMENT
0
Entering edit mode

Thank you, RamRS!

You are right the list in the vignette doesn't match to actual values.

Where did you find the actual type values?

ADD REPLY
1
Entering edit mode

Like the error message says, you can run listFilters(mart) to get a list of filters (which are also valid values for the type parameter) with their descriptions.

ADD REPLY

Login before adding your answer.

Traffic: 1995 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