You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dash_Bio Manhattan plot attempting to assign an invalid property when creating graph #486
Describe the bug
When I go to run my dash app and have it produce a Manhattan plot from my own input data, it raises a ValueError. The exact error is: (Invalid property specified for object of type plotly.graph_objs.scattergl.Marker: 'name'). This is not a value that the user sets, but rather something the Manhattan plot function sets.
To Reproduce
Steps to reproduce the behavior:
I have a data set that I am loading in that is not set up in the strict CHR, BP, P, SNP, GENE column headers.
I then alter the pandas DataFrame to conform to the column names requested by the Manhattan plot function. Because I do not have nor need the data for SNP, ZSCORE, EFFECTSIZE, GENE, or DISTANCE, they are just NA string values.
I then conform the columns to the correct data types and call the Manhattan plot function. It is at this time that the error is raised.
Expected behavior
I would expect to have a Manhattan plot created and displayed.
Screenshots
If applicable, add screenshots to help explain the issue.
Python version: [e.g., 3.7.2]
Python Version 3.6.4
Python environment (all installed packages in your current environment):
Activity
nickmelnikov82 commentedon Sep 9, 2021
I checked the #486 issue about uploading another data.
I downloaded another data for the Manhatten plot and it build
a graph for this data.
Steps:
The columns that are needed for the ManhattanPlot function:
They are the same as in the default data.csv file.
My data.csv file is attached.
data.csv
Fix error in Manhattan plot for single chromosome