Hello everyone,
I am working with biomaRt to access Ensembl annotation (see more info here: http://127.0.0.1:29459/library/biomaRt/doc/accessing_ensembl.html) and I am trying to retrieve 5'UTR sequences from "ensembl_transcript_id" (with filter) together with the "5_utr_start" and "5_utr_end" positions.
Example code (R studio):
query <- getBM(attributes=c('ensembl_gene_id','ensembl_transcript_id',"5_utr_start","5_utr_end","5utr"),filter = c("transcript_biotype","chromosome_name"), value = list(c("protein_coding"),c(1)), mart = ensembl)
For some "ensembl_transcript_id" entries this query gives me multiple "5_utr_start" and "5_utr_end" positions (separated by a semicolon). However, I get only a single 5'UTR sequence ("5utr") per "ensembl_transcript_id" for these entries. This means that I don't know which "5_utr_start" and "5_utr_end" positions are actually the correct ones for the displayed 5'UTR sequence ("5utr"). This is a problem for me because I need to know the exact starting & end position for the displayed UTR sequence for subsequent analysis.
Thank you for your help!
biomart
ensembl
r
sequence