Skip to content

error with median value of signed_sumstat #254

Description

@dor25

I am trying MTAG with 2 traits and keep getting an error with the median value of signed_sumstat. I have rechecked my data and input is correct from the summary statistics. Is there something else I need to check or amend? Thank you

ERROR converting summary statistics:

Traceback (most recent call last):
File "/opt/mtag/mtag_munge.py", line 882, in munge_sumstats
check_median(dat.SIGNED_SUMSTAT, signed_sumstat_null, args.median_z_cutoff, sign_cname))
File "/opt/mtag/mtag_munge.py", line 525, in check_median
raise ValueError(msg.format(F=name, M=expected_median, V=round(m, 2)))
ValueError: WARNING: median value of SIGNED_SUMSTAT is 0.71 (should be close to 0.0). This column may be mislabeled.

Conversion finished at Thu May 7 11:57:51 2026
Total time elapsed: 2.06s
WARNING: median value of SIGNED_SUMSTAT is 0.71 (should be close to 0.0). This column may be mislabeled.
Traceback (most recent call last):
File "/opt/mtag/mtag.py", line 1577, in
mtag(args)
File "/opt/mtag/mtag.py", line 1343, in mtag
DATA_U, DATA, args = load_and_merge_data(args)
File "/opt/mtag/mtag.py", line 273, in load_and_merge_data
GWAS_d[p], sumstats_format[p] = _perform_munge(args, GWAS_d[p], gwas_dat_gen, p)
File "/opt/mtag/mtag.py", line 166, in _perform_munge
munged_results = munge_sumstats.munge_sumstats(argnames, write_out=False, new_log=False)
File "/opt/mtag/mtag_munge.py", line 882, in munge_sumstats
check_median(dat.SIGNED_SUMSTAT, signed_sumstat_null, args.median_z_cutoff, sign_cname))
File "/opt/mtag/mtag_munge.py", line 525, in check_median
raise ValueError(msg.format(F=name, M=expected_median, V=round(m, 2)))
ValueError: WARNING: median value of SIGNED_SUMSTAT is 0.71 (should be close to 0.0). This column may be mislabeled.
Analysis terminated from error at Thu May 7 11:57:51 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions