Questions tagged [scanpy]

Scanpy is a scalable toolkit for analyzing single-cell gene expression data. It includes preprocessing, visualization, clustering, pseudotime and trajectory inference, differential expression testing and simulation of gene regulatory networks.

Scanpy is a scalable toolkit for analyzing single-cell gene expression data built jointly with anndata. It includes preprocessing, visualization, clustering, trajectory inference and differential expression testing. The Python-based implementation efficiently deals with datasets of more than one million cells. For more information, see the docs and the github repository.

63 questions
0
votes
1 answer

Python importing package as if it is a module

I've been having a lot of trouble importing a package in Python called "scanpy" - I've been trying to follow this tutorial here (https://scanpy-tutorials.readthedocs.io/en/latest/pbmc3k.html) but Python seems to view "scanpy" as a module of a…
Aaron
  • 113
  • 1
  • 7
0
votes
1 answer

Trouble installing/importing "scanpy" dependency in Python

I'm having trouble importing a python package called "scanpy" into a Jupyter Notebook. Following @ecjb's advice here (Python - package not found although it is installed), which was basically to specify the python/pip installation I wanted to use…
Aaron
  • 113
  • 1
  • 7
0
votes
1 answer

ModuleNotFoundError: No module named 'scanpy' (python)

I've installed scanpy, and when I check with pip show it's there: C:\Users\plain>pip show scanpy Name: scanpy Version: 1.8.2 Summary: Single-Cell Analysis in Python. Home-page: http://github.com/theislab/scanpy Author: Alex Wolf, Philipp Angerer,…
Jimmy
  • 69
  • 1
  • 10
0
votes
1 answer

Kivy/KivyMD app runs fine in venv environment but crashes in exe file

I tried to make an exe file using the code I wrote using Kivy/KivyMD. I'm able to successfully generate the exe file. But the app crashes and an error is thrown after I click one of the list items: Traceback (most recent call last): File…
xie186
  • 487
  • 4
  • 9
0
votes
1 answer

How can I downgrade packaging when installing scanpy?

When trying to install scanpy, I get the following error ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. poetry 1.1.11…
0
votes
2 answers

scanpy neighbors function: LLVM ERROR: Symbol not found: __svml_sqrtf8

Whenever I use sc.pp.neighbors(adata) I get this message (without any error): I have: scanpy==1.8.1 pynndescent==0.5.4 numba==0.54.0 umap-learn==0.5.1 anndata==0.7.6 My dataset contains only ~20,000 cells so it's quite weird that my kernel dies…
Ofir Shorer
  • 446
  • 1
  • 6
  • 16
0
votes
0 answers

How to resolve: "ContextualVersionConflict" on Python?

I was trying to run scanpy's neighbors function with my genes expression dataset: import scanpy as sc sc.pp.pca(adata) sc.pp.neighbors(adata) and got this error: C:\Users\User\anaconda3\lib\site-packages\numba\core\cpu.py:77: UserWarning: Numba…
Ofir Shorer
  • 446
  • 1
  • 6
  • 16
0
votes
1 answer

How to add a color bar to label the cells from which sample with `annadata.obs['samples']` in the `scanpy.pl.heatmap` plot?

Can anyone help me and tell me: How to add a color bar to label the cells from which sample with annadata.obs['samples'] in the scanpy.pl.heatmap plot (https://scanpy.readthedocs.io/en/stable/generated/scanpy.pl.heatmap.html)? Thanks a lot.
Dan Li
  • 71
  • 1
  • 1
  • 9
0
votes
0 answers

I have installed ScanPy and AnnData in my linux environment, but I get the following ImportError: cannot import name 'PathLike' from 'anndata.compat'

I have installed ScanPy and AnnData in my linux environment, but I get the following ImportError: cannot import name 'PathLike' from 'anndata.compat' I installed the following packages: conda install seaborn scikit-learn statsmodels numba…
LPower
  • 1
  • 1
0
votes
2 answers

Problem Plotting Scanpy Violin Plots Next to One Another

I'm working on analyzing some data using scanpy and I'm trying to plot 3 violin plots next to one another but I can't seem to get it to work. I tried using subplots a few different ways but they keep getting empty charts with the violin plots in…
Brian M.
  • 1
  • 1
0
votes
0 answers

How to modify the attributes of a class in python using a method without returning the instance (inplace operation)

Description of my goal and the problem: I am currently working with the scanpy and anndata packages in python (version 3.6.12). If you are not familiar with these packages, just know that the anndata.AnnData stores a data matrix (numpy.ndarray) in…
DoRemy95
  • 614
  • 3
  • 19
0
votes
1 answer

How to change Y Axis label size in matplotlib

I am using scanpy, who uses matplotlib under the hood. I am basically creating a dotplot with this package. I would like to change the y axis label size, how can I do this? Using this works for enlarging all font sizes for the entire plot, as…
Workhorse
  • 1,500
  • 1
  • 17
  • 27
0
votes
2 answers

How to change font size in scanpy

I am generating dotplots using scanpy and unable to change the font size. Is there a way to do so? For example, how would I edit this line of code? sc.pl.dotplot(df, ["gene"], 'CellType', dendrogram=True, save = name)
Workhorse
  • 1,500
  • 1
  • 17
  • 27
0
votes
1 answer

Why I have an Error when importing scanpy._compat?

Hi I'm new here so sorry for my language which could result inaccurate. I'm working with a conda environment in which I installed scanpy. However, when I import the module scanpy._compat, it returns an import error: from scanpy._compat import…
leo071
  • 3
  • 2
0
votes
1 answer

Unable to iterate over pandas dataframe loaded from tabular data

I can load my tabular data into a DataFrame using scanpy but I'm missing how to iterate over it to access selected rows/columns. This is single-cell genomics data, where each row is a gene and each column is the expression value for a specific…
Jorvis
  • 3,159
  • 1
  • 17
  • 16