Skip to contents

Find all neighboring genes on a certain chromosome around a position with a certain window size.

GTEx API Portal documentation

Usage

get_neighbor_gene(pos, chromosome, bp_window, page = 0, itemsPerPage = 250)

Arguments

pos

Integer, vector.

chromosome

String. One of "chr1", "chr2", "chr3", "chr4", "chr5", "chr6", "chr7", "chr8", "chr9", "chr10", "chr11", "chr12", "chr13", "chr14", "chr15", "chr16", "chr17", "chr18", "chr19", "chr20", "chr21", "chr22", "chrM", "chrX", "chrY".

bp_window

Integer.

page

Integer (default = 0).

itemsPerPage

Integer (default = 250).

Value

A tibble.

See also

Examples

# \dontrun{
get_neighbor_gene(pos = 1000000, chromosome = "chr1", bp_window = 10000)
#> 
#> ── Paging info ─────────────────────────────────────────────────────────────────
#>  numberOfPages = 1
#>  page = 0
#>  maxItemsPerPage = 250
#>  totalNumberOfItems = 4
#> # A tibble: 4 × 15
#>   chromosome dataSource description      end gencodeId gencodeVersion geneStatus
#>   <chr>      <chr>      <chr>          <int> <chr>     <chr>          <chr>     
#> 1 chr1       HAVANA     novel transc… 9.98e5 ENSG0000… v26            ""        
#> 2 chr1       HAVANA     hes family b… 1.00e6 ENSG0000… v26            ""        
#> 3 chr1       HAVANA     ISG15 ubiqui… 1.01e6 ENSG0000… v26            ""        
#> 4 chr1       HAVANA     ribosomal pr… 1.01e6 ENSG0000… v26            ""        
#> # ℹ 8 more variables: geneSymbol <chr>, geneSymbolUpper <chr>, geneType <chr>,
#> #   genomeBuild <chr>, start <int>, strand <chr>, tss <int>, entrezGeneId <chr>
# }