-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
73 lines (54 loc) · 1.85 KB
/
Copy pathREADME.Rmd
File metadata and controls
73 lines (54 loc) · 1.85 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# protean <img src="man/figures/logo.svg" align="right" height="139" />
<!-- badges: start -->

<!-- badges: end -->
This data package provides protein sequence profiles for OncoKB cancer
genes. These sequence profiles can be useful to infer evolutionary variation at protein
positions which in turn may be used as a proxy for inferring impact of
mutations. The data here provided is mostly useful if used as input to the
AGVGD method: https://cran.r-project.org/package=agvgd.
## Installation
Since `{protean}` is a data package that bundles more than a thousand of
sequence profiles, its size exceeeds CRAN's limits and hence its installation
is provided by Pattern Institute's R-Universe repository:
```r
install.packages("protean", repos = "https://patterninstitute.r-universe.dev")
```
## Usage
To know the genes whose protein sequence profiles are provided use
`exported_genes`:
```{r}
library(protean)
# Number of protein sequence profiles available
length(exported_genes)
# Here are the first 10
exported_genes[1:10]
```
The protein sequence profiles are bundled with `{protean}` and their location
can be found with `profile_path()`:
```{r}
profile_path("TP53")
```
To import one sequence profile into R use `read_profile()`:
```{r}
tp53_prof <- read_profile(profile_path("TP53"))
tp53_prof
```
The column `ortho_profile_seq` contains the ortholog sequences of the profile.
The human sequence is the same across rows and can be found in the column
`human_profile_seq`:
```{r}
tp53_prof[c("ortho_species", "human_profile_seq", "ortho_profile_seq")]
```