scverse / scverse/SnapATAC2

"obs_names" error in snapatac2.tl.add_cor_scores

Open
#240 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
323
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Hi and thanks for developing this very useful tool!
when i tried to use snapatac2.tl.add_cor_scores(network, peak_mat= data) it gives me error of "'NoneType' object has no attribute 'obs_names'"
data:Anndata scATAC processed with snapatac2,
the previous step of the network works fine. created nodes and edges.
any idea how to workaround that?
snapatac2: i used pip install snapatac2[all] for installation.
many thanks in advance.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the snapatac2.tl.add_cor_scores(network, peak_mat=data) call with the described processed AnnData input and capture the full traceback. Inspect the add_cor_scores entry point and its handling of network and peak_mat, then verify that the call no longer accesses obs_names on None and produces correlation scores.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.