Question: Using Biomartr To See What Is In A Region
0
gravatar for User 1933
5.9 years ago by
User 1933340
User 1933340 wrote:

I have a set of CNV regions and I want to know what genes/promoters/enhancers/etc are there. I am using Biomart under Bioconductor and in Biomart package in R, the example is like this,

human = useMart("ensembl", dataset = "hsapiens_gene_ensembl")
getLDS(attributes = c("hgnc_symbol","chromosome_name", "start_position"), filters = "hgnc_symbol", values = "TP53", mart = human, attributesL  = c("chromosome_name","start_position"), martL = human)

However, I would like to do something vise verse, my input is like "chr1:100,100000" and I would like to get a list of annotation

R bioconductor cnv annotation • 1.8k views
ADD COMMENTlink modified 5.9 years ago by Neilfws48k • written 5.9 years ago by User 1933340

Edited your code; I think it should read:

, attributesL  = c("chromosome_name","start_position")

Also - this code does not return "genes, promoters, enhancers etc." It returns this:

  HGNC.symbol Chromosome.Name Gene.Start..bp. Chromosome.Name.1
1        TP53              17         7565097                17
  Gene.Start..bp..1
1           7565097
ADD REPLYlink written 5.9 years ago by Neilfws48k
2
gravatar for Neilfws
5.9 years ago by
Neilfws48k
Sydney, Australia
Neilfws48k wrote:

To get genes in a region, you probably want to use getBM() and the chromosomal_region filter. For example:

getBM(attributes = c("hgnc_symbol", "chromosome_name", "start_position"), filters = "chromosomal_region", values = "17:7500000:7600000", mart = human)

  hgnc_symbol chromosome_name start_position
1                          17        7514499
2                          17        7588578
3        FXR2              17        7494548
4                          17        7517264
5        SHBG              17        7517382
6        SAT2              17        7529552
7      ATP1B2              17        7549945
8        TP53              17        7565097
9      WRAP53              17        7589389

Use:

filters <- listFilters(human)
attributes <- listAttributes(human)

to see the available filters and attributes.

ADD COMMENTlink written 5.9 years ago by Neilfws48k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1070 users visited in the last hour