Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Update README.md (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrs95 authored May 17, 2023
1 parent ae6a59d commit e9cdc68
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,31 @@ Regional association plots for genetic and epigenetic data. gassocplot2 is now [
* stack_assoc_plot_save - saves a PNG of the stack_assoc_plot.

## Installation
1. install.packages("devtools")
2. library(devtools)
3. install_github("jrs95/gassocplot")
4. library(gassocplot)
```
install.packages("devtools")
library(devtools)
install_github("jrs95/gassocplot")
library(gassocplot)
```

## Examples
\#\#\# assoc_plot
```
### assoc_plot
markers <- gassocplot::test_assoc_plot
head(markers)
corr <- gassocplot::test_corr # this is correlation not correlation squared and has to be ordered in the same way as the markers data frame
plot <- assoc_plot(markers, corr)
assoc_plot_save(plot, "assoc_plot_test.png")
\#\#\# stack_assoc_plot
### stack_assoc_plot
markers <- gassocplot::test_stack_assoc_plot_markers
head(markers)
z <- gassocplot::test_stack_assoc_plot_associations
head(z)
corr <- gassocplot::test_corr # this is correlation not correlation squared and has to be ordered in the same way as the markers data frame
plot <- stack_assoc_plot(markers, z, corr, traits=c("Trait 1", "Trait 2"))
stack_assoc_plot_save(plot, "stack_assoc_plot_test.png", 2)
```

## Linkage disequilibrium information
The [LDlinkR](https://cran.r-project.org/web/packages/LDlinkR/index.html) package can be used to obtain linkage disequilibrium matrices from 1000G using the LDmatrix function. Note the matrix from this function would have to be square rooted and ordered in the same way as the markers data frame.
Expand Down

0 comments on commit e9cdc68

Please sign in to comment.