Skip to content

Latest commit

 

History

History
76 lines (63 loc) · 1.72 KB

bio-manhattanplot.md

File metadata and controls

76 lines (63 loc) · 1.72 KB
jupyter
celltoolbar jupytext kernelspec language_info plotly
Tags
notebook_metadata_filter text_representation
all
extension format_name format_version jupytext_version
.md
markdown
1.3
1.13.0
display_name language name
Python 3 (ipykernel)
python
python3
codemirror_mode file_extension mimetype name nbconvert_exporter pygments_lexer version
name version
ipython
3
.py
text/x-python
python
python
ipython3
3.9.7
display_as language layout name order page_type permalink thumbnail
bio
python
base
Volcano plot
1
u-guide
python/volcano-plot/
thumbnail/volcano-plot.png

Manhattan Plot

An example of a default ManhattanPlot component without any extra properties.

import pandas as pd
import dash_bio as dashbio

df = pd.read_csv('https://raw.githubusercontent.com/plotly/dash-bio-docs-files/master/manhattan_data.csv')


dashbio.ManhattanPlot(
    dataframe=df,
)

Highlighted points color, and colors of the suggestive line and the genome-wide line.

Change the color of the points that are considered significant.

import pandas as pd
import dash_bio as dashbio


df = pd.read_csv('https://raw.githubusercontent.com/plotly/dash-bio-docs-files/master/manhattan_data.csv')

dashbio.ManhattanPlot(
    dataframe=df,
    highlight_color='#00FFAA',
    suggestiveline_color='#AA00AA',
    genomewideline_color='#AA5500'
)

ManhattanPlot with Dash

from IPython.display import IFrame
snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/'
IFrame(snippet_url + 'bio-manhattanplot', width='100%', height=630)