-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
89 lines (63 loc) · 2.39 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
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%"
)
```
# ggrama
<!-- badges: start -->
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![DOI](https://zenodo.org/badge/424568391.svg)](https://zenodo.org/badge/latestdoi/424568391)
<!-- badges: end -->
The goal of ggrama is to make it easy to plot Ramachandran diagrams from a pdb file using ggplot2 graphics.
## Installation
You can install the development version of ggrama:
``` r
devtools::install_github("missuse/ggrama")
```
## Example
```{r example, fig.width = 4, fig.height = 4, out.width = "50%", fig.align = 'center'}
library(ggrama)
#download a pdb file
download.file("https://files.rcsb.org/download/2ADQ.pdb1.gz",
dest = "2ADQ.pdb1.gz")
#plot by type of Ramachandran diagrams
ggrama("2ADQ.pdb1.gz") #general type the default
ggrama("2ADQ.pdb1.gz", "pre.pro") #pre-proline, additional options are glycine and proline
```
Or plot all four types in a grid
```{r example2, fig.width = 8, fig.height = 8}
ggrama_all("2ADQ.pdb1.gz")
```
Using contours:
```{r example3, fig.width = 8, fig.height = 8}
ggrama_all("2ADQ.pdb1.gz",
contour = TRUE) #contours
```
```{r example4, fig.width = 8, fig.height = 8}
ggrama_all("2ADQ.pdb1.gz",
contour = TRUE, #contours
smooth = TRUE) #use smoothed background
```
## Bug reports
If you encounter undesired behavior in `ggrama` functions or have ideas how to improve the package please open an issue at: https://github.com/missuse/ggrama/issues
## Citation
To cite `ggrama` in publications use:
> Milan Dragićević (2021), ggrama: Ramachandran diagrams using ggplot2 graphics. url: https://github.com/missuse/ggrama. doi: 10.5281/zenodo.5660975
A BibTeX entry for LaTeX users is
```{}
@Manual{,
title = {ggrama: Ramachandran diagrams using ggplot2 graphics},
author = {Milan Dragićević},
year = {2021},
url = {https://github.com/missuse/ggrama},
doi = {https://doi.org/10.5281/zenodo.5660975},
}
```