Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Scipy error when using process_kmer_to_graph.py script #102

@FarrahKhan1400

Description

@FarrahKhan1400

Hi Magdoll,

I ran Cogent at the beginning of this year with no issue.

I recently have recreated the environment and tried to use it and am having issues with the process_kmer_to_graph.py step.

When I run it this is the error I get:

File "/home/khnfar025/.conda/envs/anaCogent/lib/python3.7/site-packages/networkx-2.7.1-py3.7.egg/networkx/convert_matrix.py", line 1020, in to_scipy_sparse_matrix
G, nodelist=nodelist, dtype=dtype, weight=weight, format=format
File "/home/khnfar025/.conda/envs/anaCogent/lib/python3.7/site-packages/networkx-2.7.1-py3.7.egg/networkx/convert_matrix.py", line 921, in to_scipy_sparse_array
A = sp.sparse.coo_array((d, (r, c)), shape=(nlen, nlen), dtype=dtype)
AttributeError: module 'scipy.sparse' has no attribute 'coo_array'

This is the resource that I've found on the issue : pyg-team/pytorch_geometric#4378

To me it sounds like scipy version 1.8.0 is required for coo_array. Conda install currently only install version 1.7.3.

Is this something that can be fixed on your side in the install instructions? I have had difficulty having this resolved by the sys admin for the hpc that I use at my institution.

thanks for your consideration,
Farrah Khan

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