Skip to content

Commit

Permalink
Fix pylint and flake8 errors in app_manhattan_plot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Jan 18, 2019
1 parent bbafce1 commit cab52b0
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions tests/dash/app_manhattan_plot.py
Expand Up @@ -7,9 +7,11 @@

import dash_bio

df = pd.read_csv("tests/dash/sample_data/manhattan_volcano_data.csv") # Load the data
# Load the data
df = pd.read_csv("tests/dash/sample_data/manhattan_volcano_data.csv")

fig = dash_bio.ManhattanPlot(df) # Feed the data to a function which creates a Manhattan Plot figure
# Feed the data to a function which creates a Manhattan Plot figure
fig = dash_bio.ManhattanPlot(df)

text_style = {
'color': "#506784",
Expand All @@ -18,7 +20,8 @@


def description():
return 'Display genomic studies results sorted out by chromosome with this Manhattan plot.\
return 'Display genomic studies results sorted out by chromosome with ' \
'this Manhattan plot.\
Perfect to visualize genome wide association studies (GWAS).'


Expand Down Expand Up @@ -50,11 +53,11 @@ def layout():
html.Div(
id='mhp-text',
className='row mhp-text mhp-intro',
children="Visualize genome wide association studies ("
"GWAS) with efficient manhattan plots. Using "
"WebGL under the hood, interactively explore "
"hundred of thousands of points at once or "
"individually hover over them.",
children="Visualize genome wide association studies "
"(GWAS) with efficient manhattan plots. "
"Using WebGL under the hood, interactively "
"explore hundred of thousands of points at "
"once or individually hover over them.",
),
html.Div(
className='mhp-horizontal-style mph-control-div',
Expand All @@ -74,7 +77,10 @@ def layout():
max=9,
min=1,
value=7,
marks={i + 1: '{}'.format(i + 1) for i in range(9)},
marks={
i + 1: '{}'.format(i + 1)
for i in range(9)
},
step=0.05
),
)
Expand All @@ -97,7 +103,10 @@ def layout():
max=9,
min=1,
value=6,
marks={i + 1: '{}'.format(i + 1) for i in range(9)},
marks={
i + 1: '{}'.format(i + 1)
for i in range(9)
},
step=0.05
),
)
Expand Down

0 comments on commit cab52b0

Please sign in to comment.