JonJala / mtag

Python command line tool for Multi-Trait Analysis of GWAS (MTAG)
GNU General Public License v3.0
169 stars 54 forks source link

Error converting summary statistics #171

Open ghost opened 1 year ago

ghost commented 1 year ago

Hi , I am trying to convert summary statistics using ./mtag_munge.py command but it is throwing me the error.

ERROR converting summary statistics:

2022/09/25 10:34:09 AM Traceback (most recent call last): File "./mtag_munge.py", line 881, in munge_sumstats check_median(dat.SIGNED_SUMSTAT, signed_sumstat_null, args.median_z_cutoff, sign_cname)) AttributeError: 'Namespace' object has no attribute 'median_z_cutoff'

The conversion of summary statistics using munge_sumstats.py (ldsc) works well but does not work in mtag. Any suggestions will be appreciated. Thank you.

JonJala commented 1 year ago

It looks like the pull request that was implemented about 10 months ago to add a median z cutoff to mtag.py made the assumption that munge would be called from mtag.py and never on its own. Just pushed a commit that should hopefully fix that (it adds the flag to the munge script as well). So I'd pull the latest and see if that helps you.

On Sun, Sep 25, 2022 at 12:00 PM MeghSubedi @.***> wrote:

Hi , I am trying to convert summary statistics using ./mtag_munge.py command but it is throwing me the error.

ERROR converting summary statistics:

2022/09/25 10:34:09 AM Traceback (most recent call last): File "./mtag_munge.py", line 881, in munge_sumstats check_median(dat.SIGNED_SUMSTAT, signed_sumstat_null, args.median_z_cutoff, sign_cname)) AttributeError: 'Namespace' object has no attribute 'median_z_cutoff'

The conversion of summary statistics using munge_sumstats.py (ldsc) works well but does not work in mtag. Any suggestions will be appreciated. Thank you.

— Reply to this email directly, view it on GitHub https://github.com/JonJala/mtag/issues/171, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIOF556JDRYQJSAW73UTE3WABZJPANCNFSM6AAAAAAQVET3NQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ghost commented 1 year ago

Thank you so much JonJala for your reply. I tried mtag.py with GWAS results and used large values of median_z_cutoff and it worked.