Entering edit mode
9.6 years ago
tonja.r
▴
600
I am using biomart to retrieve gene/transcripts/exon information and I need exon start and end positions BUT before I need to filter according to the chromosome and the region.
ensembl=useMart("ensembl")
ensembl = useDataset("hsapiens_gene_ensembl",mart=ensembl)
filterlist <- list("7:128554168:128776507")
attributes = c("chromosome_name", "exon_chrom_start", "exon_chrom_end","transcript_length","strand", "ensembl_gene_id", "ensembl_transcript_id","ensembl_exon_id","hgnc_symbol")
results=getBM(attributes =attributes, filters = c("chromosomal_region"), values = filterlist, mart = ensembl)
It throws an error:
Query ERROR: caught BioMart::Exception::Usage: Attributes from multiple attribute pages are not allowed
Is it possible somehow to retrieve the exon positions in the defined chromosome and region?
The solution is great however, it takes amazingly much time to retrieve the data.