Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kchu25 committed Aug 22, 2024
1 parent b8054cc commit a4b15b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,31 @@ C = [0.01 0.04 0.05 0.0 0.74 0.05 0.03 0.05 0.03 0.0]
You can then plot the cross-linked PWM using:

```
logoplotwithcrosslink(pfm, c; rna=true)
logoplotwithcrosslink(pfm, C; rna=true)
```
This will generate:

![pfm](demo/demo2.png)

### Multiplexed crosslinking tendencies

Multiplexed crosslinking tendencies refer to situations where multiple crosslinking signatures are present in the dataset. These different crosslinking signatures can be applied to each sequence before motif discovery tasks. This corresponds to cases where the crosslink matrix $C$ has more than one row, i.e., $K > 1$.

Suppose we have
```
C2 = [0.01 0.02 0.03 0.0 0.37 0.03 0.02 0.03 0.02 0.0
0.03 0.0 0.11 0.04 0.26 0.0 0.03 0.01 0.02 0.02]
```
Now, using
```
logoplotwithcrosslink(pfm, C2; rna=true)
```
You'd get

![pfm](demo/demo3.png)

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



# Note
Expand All @@ -75,4 +94,4 @@ $$IC(c_i)=2+\sum_{\alpha}f_{\alpha i}\log_2 f_{\alpha i}$$
This formula illustrates why the y-axis of the plot ranges from $0$ to $2$.

## Acknowledgement
This code repo modifies the code using the awesome work from https://github.com/BenjaminDoran/LogoPlots.jl.
This code repo modifies the code using the work from https://github.com/BenjaminDoran/LogoPlots.jl.
Binary file added 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 a4b15b1

Please sign in to comment.