Skip to content

ptms module causes a crash when using summary_binding.txt #370

@mtiberti

Description

@mtiberti

This is the case with e.g. the MLH1 entry:

INFO:mavisp.core:processing module cancermuts for MLH1, simple_mode
INFO:mavisp.core:processing module pfam for MLH1, simple_mode
INFO:mavisp.core:processing module ptms for MLH1, simple_mode
/data/user/teo/devel/MAVISp_env_test/lib/python3.10/site-packages/mavisp/modules.py:1060: FutureWarning: The 'delim_whitespace' keyword in pd.read_csv is deprecated and will be removed in a future version. Use ``sep='\s+'`` instead
  ddg_stability = pd.read_csv(os.path.join(self.data_dir, self.module_dir, 'summary_stability.txt'),
/data/user/teo/devel/MAVISp_env_test/lib/python3.10/site-packages/mavisp/modules.py:1070: FutureWarning: The 'delim_whitespace' keyword in pd.read_csv is deprecated and will be removed in a future version. Use ``sep='\s+'`` instead
  ddg_binding = pd.read_csv(os.path.join(self.data_dir, self.module_dir, 'summary_binding.txt'),
Traceback (most recent call last):
  File "/data/user/teo/devel/MAVISp_env_test/bin/mavisp", line 8, in <module>
    sys.exit(main())
  File "/data/user/teo/devel/MAVISp_env_test/lib/python3.10/site-packages/mavisp/mavisp.py", line 150, in main
    mfs.ingest()
  File "/data/user/teo/devel/MAVISp_env_test/lib/python3.10/site-packages/mavisp/core.py", line 229, in ingest
    this_module.ingest(mutations['mutation'].tolist())
  File "/data/user/teo/devel/MAVISp_env_test/lib/python3.10/site-packages/mavisp/modules.py", line 1149, in ingest
    if ddg_stability.shape[0] != 0 and ddg_binding.shape[0] != 0 and not (ddg_binding['mutation'] == ddg_stability['mutation']).all():
  File "/data/user/teo/devel/MAVISp_env_test/lib/python3.10/site-packages/pandas/core/ops/common.py", line 76, in new_method
    return method(self, other)
  File "/data/user/teo/devel/MAVISp_env_test/lib/python3.10/site-packages/pandas/core/arraylike.py", line 40, in __eq__
    return self._cmp_method(other, operator.eq)
  File "/data/user/teo/devel/MAVISp_env_test/lib/python3.10/site-packages/pandas/core/series.py", line 6105, in _cmp_method
    raise ValueError("Can only compare identically-labeled Series objects")
ValueError: Can only compare identically-labeled Series objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    Q1-2026bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions