Skip to content

ValueError when running pops.py #10

@twoneu

Description

@twoneu

Hi all,

Thank you for putting this package together. I am attempting to run PoPs on publicly available GWAS summary statistics but am running into the following error at the pops.py step:

Traceback (most recent call last):
  File "/usr/path/pops/pops.py", line 912, in <module>
    main(config_dict)
  File "/usr/path/pops/pops.py", line 879, in main
    preds_df = pops_predict(mat, rows, cols, coefs_df)
  File "/usr/path/pops/pops.py", line 685, in pops_predict
    pred = mat.dot(coefs_df.loc[cols].beta.values)
ValueError: shapes (18383,743) and (1867,) not aligned: 743 (dim 1) != 1867 (dim 0)

I think this issue has to do with my munged feature files. I followed Step 0 to munge the "mouse_brain2" feature files from https://github.com/FinucaneLab/gene_features and tried to rerun your example analysis, but the same error occurs. Could you advise me on the best way to generate the munged features from that Github repo?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions