Got it, thank you!
Hi, I was wondering if there is a way to download or generate 24 primates EPO-Extended alignments for a set of SNPs using Ensembl VEP. I can download it from the phylogenetic context section in Ensembl for a given SNP, but was wondering how to do it for a large number of SNPs from command line.
Thanks!
1 answer
There isn't a method in the VEP or any of the VEP plugins that do this, so you would need to write something yourself. You could invoke the alignment REST API endpoint, to fetch the alignment ± whatever up/downstream distance you want.
Hi again Emily_Ensembl , I have quick follow-up question. All my SNPs are annotated in GRCh37 coordinates. Is there a way to get GRCh37 sequence using the code you pointed to?
I've been using the code chunk below:
server <- "http://rest.ensembl.org"
ext <- paste0("/alignment/region/homo_sapiens/", tmp_chr, ":", tmp_seq_str, "-",
tmp_seq_end, "?species_set_group=primates")
r <- GET(paste(server, ext, sep = ""), content_type("application/json"))
stop_for_status(r)
I tried my chance with /alignment/region/homo_sapiens/GRCh37/, but didn't manage to make it work. I was wondering if there is a simple way or if I have to CrossMap all my SNPs.
Thanks!
Log in to answer this question.