Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
shitohana committed Nov 2, 2023
2 parents 3f3b281 + 35177f7 commit d1e6cf9
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ lp.draw()

Output for _Brachypodium distachyon_:

<p align="middle">
<img src="https://user-images.githubusercontent.com/43905117/280023042-849599c1-4b36-47e2-8b8f-6c9b9389b48e.png" width="300">
</p>

<img src="https://user-images.githubusercontent.com/43905117/280023042-849599c1-4b36-47e2-8b8f-6c9b9389b48e.png">

**Confidence bands** can be visualized via setting the `confidence` parameter in `LinePlot.draw()`

Expand All @@ -177,22 +174,14 @@ lp.draw(confidence=.95)

Output for _Brachypodium distachyon_:

<p align="middle">
<img src="https://user-images.githubusercontent.com/43905117/280023017-e1167a90-83d7-46d5-aa45-545d6bdbc033.png" width="300">
</p>
<img src="https://user-images.githubusercontent.com/43905117/280023017-e1167a90-83d7-46d5-aa45-545d6bdbc033.png">

### Heat-map clusterisation

Genes can be clustered to minimize distances between them before plotting heat-map. This can be useful for capturing
overall methylation patterns in sample. _This operation is very time consuming. It is advised to set small number of
windows (< 50)_.

Output for _Brachypodium distachyon_

<p align="middle">
<img src="https://user-images.githubusercontent.com/43905117/280022981-d6d4ffff-7f3d-4e33-8e42-05b98ca28161.png" width="300">
</p>

```python
metagene = bismarkplot.Metagene.from_file(
file = "path/to/CX_report.txt",
Expand All @@ -208,9 +197,9 @@ clustered = metagene.clustering(
# Heatmap with optimized distances between genes will be drawn
clustered.draw().savefig("path/to/clustered_hm.pdf")
```
Output for _Brachypodium distachyon_

Output:

<img src="https://user-images.githubusercontent.com/43905117/280022981-d6d4ffff-7f3d-4e33-8e42-05b98ca28161.png">

### Smoothing the line plot

Expand Down Expand Up @@ -366,4 +355,4 @@ Output for _Arabidopsis thaliana_:

Output for _Brachypodium distachyon_:

<img src="https://user-images.githubusercontent.com/43905117/274563210-4f5dc20a-4ab3-4e52-8263-6ebe7b0623d5.png">
<img src="https://user-images.githubusercontent.com/43905117/274563210-4f5dc20a-4ab3-4e52-8263-6ebe7b0623d5.png">

0 comments on commit d1e6cf9

Please sign in to comment.