Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/kchu25/PlotPWM.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
kchu25 committed Sep 29, 2024
2 parents 918f39e + b0ac2f3 commit b8eb539
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ logoplotwithcrosslink(pfm, C; rna=true)
```
which will automatically assume a uniform background of `[0.25, 0.25, 0.25, 0.25]`.

Use the command
```
save_crosslinked_logoplot(pfm, background, C, "demo2.png")
```
or
```
save_crosslinked_logoplot(pfm, C, "demo2.png") # uniform background
```
to save the plot.

### Multiplexed crosslinking tendencies

Expand All @@ -126,6 +135,14 @@ You'd get

Here, different colors indicate different crosslinking signatures, and their height is proportional to the crosslinking tendency at each position in the PWM.

Similar to above, use
```
save_crosslinked_logoplot(pfm, background, C2, "demo3.png"; rna=true)
```
to save the plot.



## Plot your PWM with highlighted regions
Sometimes you may have columns that you want to highlight, for example, when you have transcription factors binding sites embedded in a (long) transposable element (e.g. see figure 4 in this [paper](https://academic.oup.com/bioinformatics/article/39/6/btad378/7192989)). Then, what you can do is to provide a vector of `UnitRange{Int}` to highlight the regions of interest, e.g.
```
Expand All @@ -147,6 +164,9 @@ logoplot_with_highlight_crosslink(pfm, background, C2, highlighted_regions2)

![highlight-pfm](demo/demo5.png)

Use


<!--
save_crosslinked_logoplot(pfm, C, "tmp.png"; highlighted_regions=highlighted_regions2) -->

Expand Down
Binary file modified demo/demo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/demo3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8eb539

Please sign in to comment.