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!

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