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
Description
Currently the chromosome column specified with dash_bio.ManhattanPlot(chrm='<The column of chromosome>') does not support non-numeric types.
File ~/micromamba/envs/temp/lib/python3.12/site-packages/dash_bio/component_factory/_manhattan.py:221, in _ManhattanPlot.__init__(self, x, chrm, bp, p, snp, gene, annotation, logp)
[219] else:
[220] if not is_numeric_dtype(x[chrm].dtype):
--> [221] raise TypeError("%s column should be numeric. Do you have "
[222] "'X', 'Y', 'MT', etc? If so change to "
[223] "numbers and try again." % chrm)
[225] if bp not in x.columns.values:
[226] raise KeyError("Column %s not found in 'x' data.frame" % bp)
TypeError: CHR column should be numeric. Do you have 'X', 'Y', 'MT', etc? If so change to numbers and try again.
Expected behavior
If string type for chromosomes is supported, it would allow for the creation of Manhattan plots for a greater variety of chromosomes. Additionally, this feature would enable the plotting of data from more species.
Python version: 3.12.4
Python environment (all installed packages in your current environment):
Description
Currently the chromosome column specified with
dash_bio.ManhattanPlot(chrm='<The column of chromosome>')
does not support non-numeric types.To Reproduce
Python code:
The output:
Expected behavior
If string type for chromosomes is supported, it would allow for the creation of Manhattan plots for a greater variety of chromosomes. Additionally, this feature would enable the plotting of data from more species.
Python version: 3.12.4
Python environment (all installed packages in your current environment):
The text was updated successfully, but these errors were encountered: