Skip to content

ValueError: The matrix should be symmetric on .matrix files made with HiC-Pro #98

@Balthasar-eu

Description

@Balthasar-eu

When I try to manually do ice normalization on matrix files from HiC-Pro ice fails with the following error:

Traceback (most recent call last):
  File "/home/balthasar/.local/bin/ice", line 95, in <module>
    counts, bias = iced.normalization.ICE_normalization(
  File "/home/balthasar/.local/lib/python3.8/site-packages/iced/normalization/__init__.py", line 66, in ICE_normalization
    is_symetric_or_tri(X)
  File "/home/balthasar/.local/lib/python3.8/site-packages/iced/utils/validation.py", line 13, in is_symetric_or_tri
    raise ValueError("The matrix should be symmetric")
ValueError: The matrix should be symmetric

The matrix file in question was made by downloading an allValidPairs file from Github and then building the matrix file with the build_matrix script from HiC-Pro.

When issuing the ice command like this:

ice output.matrix

The above error appears after a while.

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