-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.Rmd
61 lines (42 loc) · 1.31 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
output:
md_document:
variant: markdown_github
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# rensembl
[![Travis-CI Build
Status](https://travis-ci.org/dwinter/rensembl.png?branch=master)](https://travis-ci.org/dwinter/rensembl)
The very early stage of an R package wrapping [the Ensembl REST
api](http://rest.ensembl.org/).
This package is very much a work in progress, and the behaviour may well change
in the future. Even so, there is some stuff to play with already. You can
install the package via `devtools`
```r
devtools::install_github("dwinter/rensembl")
```
##Examples
Our development plan is to work on low-level functions that return simple R
objects (lists or character vectors), then build some higher-level functions
hat impliment common tasks or return richer R objects
Though we have only low level functions at present, some of them are quite helpful:
### Get information about a gene by its symbol
```{r}
brca2_info <- lookup_symbol("BRCA2")
brca2_info
```
### Find variants within a gene
```{r}
snps <- overlap(gene_id=brca2_info$id, feature="variation")
snps[[1]]
```
We can extract some information for each case too:
```{r}
table(sapply(snps, "[[", "consequence_type"))
```