Hi,
I am using bioMart to convert rsIDs to chromosome and positions. I also need to keep the rsIDs in the final dataset but I cannot find this option in the attributes.
I am showing my code here and specifically the one with the attributes. Could you please advise?
library(biomaRt);
human <- useMart(host="www.ensembl.org", "ENSEMBL_MART_ENSEMBL", dataset="hsapiens_gene_ensembl");
listMarts(host="www.ensembl.org");
attributes = listAttributes(human);
attributes[1:30,];
snp_ids = data$rsidonly;
snp_attributes = c("ensembl_gene_id", "chromosome_name", "start_position", "end_position", "transcript_start", "transcript_end");
snp_locations = getBM(attributes=snp_attributes, filters="chromosomal_region", values=snp_ids, mart=human);
Thank you,
Elena
That's great, thank you! It looks like I should change the host.