Repository navigation
Expand file tree
/
Copy pathREADME.Rmd
More file actions
67 lines (49 loc) · 2.12 KB
/
Copy pathREADME.Rmd
File metadata and controls
67 lines (49 loc) · 2.12 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
---
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%"
)
```
# VolcanoPlotR <a href="https://quantixed.github.io/VolcanoPlotR/"><img src="man/figures/logo.png" align="right" height="139" alt="" /></a>
<!-- badges: start -->
[](https://github.com/quantixed/VolcanoPlotR/actions/workflows/R-CMD-check.yaml)
[](https://doi.org/10.5281/zenodo.21372632)
<!-- badges: end -->
VolcanoPlotR is a way to generate nice volcano plots from MaxQuant data.
## Installation
Install the development version of VolcanoPlotR:
```{r example, eval = FALSE}
# install.packages("pak")
pak::pak("quantixed/VolcanoPlotR")
```
## Example
With a MaxQuant `proteinGroups.txt` placed in a `Data` directory, you can run the following code to generate a volcano plot:
```{r example1, eval = FALSE}
library(VolcanoPlotR)
workflow_maxquant()
```
You will be asked which groups you want to compare.
Proteins enriched in Group1 will be towards the right of the plot and those enriched in Group2 will be towards the left.
An example file is included in the package, so you can run the following code to see how it works:
```{r example2, fig.height = 4, fig.width = 4, out.width="50%"}
library(VolcanoPlotR)
# get the path to the proteinGroups.txt file included in the package
filepath <- system.file("extdata", "proteinGroups.txt", package = "VolcanoPlotR")
# get the filename fromt the path
filename <- basename(filepath)
# get the directory name
filedir <- dirname(filepath)
# run the automated procedure we will also tell it which groups to compare so
# we don't have to select them interactively
workflow_maxquant(file = filename, datadir = filedir,
group1 = "WT", group2 = "Control")
```
See the vignettes for more information.
## Notes
VolcanoPlotR is a port of [VolcanoPlot](https://github.com/quantixed/VolcanoPlot) to R.