Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with talon filter #142

Open
rugilemat opened this issue Oct 27, 2023 · 4 comments
Open

Issue with talon filter #142

rugilemat opened this issue Oct 27, 2023 · 4 comments

Comments

@rugilemat
Copy link

Hi,

I have been trying to run talon filter on my database:

talon_filter_transcripts --db talon/database.db -a Hg38 --maxFracA 0.5 --minCount 1 --minDatasets 3 --o talon/talon_run.csv

And I'm getting an import error:

Traceback (most recent call last):
  File "/users/k19022845/.local/bin/talon_filter_transcripts", line 5, in <module>
    from talon.post.filter_talon_transcripts import main
  File "/users/k19022845/.local/lib/python3.8/site-packages/talon/post/filter_talon_transcripts.py", line 13, in <module>
    from . import ab_utils as autils
  File "/users/k19022845/.local/lib/python3.8/site-packages/talon/post/ab_utils.py", line 6, in <module>
    import scanpy
  File "/users/k19022845/.local/lib/python3.8/site-packages/scanpy/__init__.py", line 17, in <module>
    from . import datasets, logging, queries, external, get, metrics, experimental
  File "/users/k19022845/.local/lib/python3.8/site-packages/scanpy/external/__init__.py", line 4, in <module>
    from . import exporting
  File "/users/k19022845/.local/lib/python3.8/site-packages/scanpy/external/exporting.py", line 14, in <module>
    from pandas.api.types import is_categorical
ImportError: cannot import name 'is_categorical' from 'pandas.api.types' (/users/k19022845/.local/lib/python3.8/site-packages/pandas/api/types/__init__.py)

I previously had issues with numpy, so I installed it to be version 1.22.4.

@fairliereese
Copy link
Member

Just for clarity's sake, did downgrading numpy like this solve your issue? If so I can work it into a new requirements update.

@rugilemat
Copy link
Author

Hi, no I'm still trying to work this out.

@fairliereese
Copy link
Member

Can you please check which version of pandas you're running? It looks like the is_categorical function has been deprecated. https://stackoverflow.com/questions/76234312/importerror-cannot-import-name-is-categorical-from-pandas-api-types'

@rugilemat
Copy link
Author

Hi, I'm sorry it took me so long to get back to you. I had some conflicts with conda environment I was initially trying to run it with. However, it now runs fine and having numpy=1.22.4 solved the issue on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants