04_analyze_latent fails due to hardcoded values
simonrasmu opened this issue · 0 comments
simonrasmu commented
Names are hardcoded (Clinical, Genomics, etc) and should instead be taken from the data input
python -m move.04_analyze_latent
Error executing job with overrides: []
Traceback (most recent call last):
File "/Users/kjv627/miniforge3/envs/move_dev/lib/python3.9/site-packages/move/04_analyze_latent/__main__.py", line 74, in main
plot_reconstruction_distribs(processed_data_path, cat_total_recon, all_values)
File "/Users/kjv627/miniforge3/envs/move_dev/lib/python3.9/site-packages/move/utils/visualization_utils.py", line 285, in plot_reconstruction_distribs
df = pd.DataFrame(cat_total_recon + all_values, index = ['Clinical\n(categorical)', 'Genomics', 'Drug data', 'Clinical\n(continuous)', 'Diet +\n wearables','Proteomics','Targeted\nmetabolomics','Untargeted\nmetabolomics', 'Transcriptomics', 'Metagenomics'])
File "/Users/kjv627/miniforge3/envs/move_dev/lib/python3.9/site-packages/pandas/core/frame.py", line 729, in __init__
mgr = arrays_to_mgr(
File "/Users/kjv627/miniforge3/envs/move_dev/lib/python3.9/site-packages/pandas/core/internals/construction.py", line 125, in arrays_to_mgr
arrays = _homogenize(arrays, index, dtype)
File "/Users/kjv627/miniforge3/envs/move_dev/lib/python3.9/site-packages/pandas/core/internals/construction.py", line 628, in _homogenize
com.require_length_match(val, index)
File "/Users/kjv627/miniforge3/envs/move_dev/lib/python3.9/site-packages/pandas/core/common.py", line 557, in require_length_match
raise ValueError(
ValueError: Length of values (3) does not match length of index (10)