Skip to content

Contrast file error #4

Description

@jabehnke

Hello-

I'm running randomise_summary.py with contrast and matrix files for a Single-Group Average with Additional Covariate that is set up according to the attached png. I get the following error:

"Contrast file does not have 1s in the first column - likely be correlation or interaction
Setting self.group_cols=['no group col']
Traceback (most recent call last):
File "/Users/jbehnke/pnl_randomise/lib/randomise_summary.py", line 143, in
corrp_map_classes, df = run_randomise_summary_basics(args)
File "/Users/jbehnke/pnl_randomise/lib/randomise_corrp.py", line 545, in run_randomise_summary_basics
corrp_map_classes = get_corrp_map_classes(corrp_map_locs, args)
File "/Users/jbehnke/pnl_randomise/lib/randomise_corrp.py", line 501, in get_corrp_map_classes
group_labels=args.grouplabels)
File "/Users/jbehnke/pnl_randomise/lib/randomise_corrp.py", line 149, in init
self.get_contrast_info_english()
File "/Users/jbehnke/pnl_randomise/lib/randomise_con_mat.py", line 36, in get_contrast_info_english
if (self.contrast_array.sum(axis=1) == 0).all():
File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/_methods.py", line 47, in _sum
return umr_sum(a, axis, dtype, out, keepdims, initial, where)
numpy.AxisError: axis 1 is out of bounds for array of dimension 1"

Thank you in advance!

Best,
Joe
age-st

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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