Entering edit mode
Hi there, I was trying to use getBM to convert rsID to chromosome coordinate. My code is as below, but it give me h38 coordinates. Is there anyway to specify the genome build to get hg19 chromosome position?
snp_ids=scan(infile, character(), quote="")
snp_mart = useMart("ENSEMBL_MART_SNP", dataset="hsapiens_snp")
snp_attributes = c("refsnp_id", "chr_name", "chrom_start")
snp_locations = getBM(attributes=snp_attributes,
filters="snp_filter",
values=snp_ids,
mart=snp_mart,
useCache=FALSE)