question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Summer student from Pinello Lab at Harvard seeking help from Theis Lab

See original GitHub issue

I’m unable to complete the Nestrorowa et al. 2016 paga tutorial. On ln[3]

adata.raw = adata
sc.pp.recipe_weinreb17(adata, log=False)
sc.tl.pca(adata)

I keep getting this output:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-4-bfa4168a87e6> in <module>
      1 adata.raw = adata
----> 2 sc.pp.recipe_weinreb17(adata, log=False)
      3 sc.tl.pca(adata)

/opt/anaconda3/lib/python3.7/site-packages/scanpy/preprocessing/_recipes.py in recipe_weinreb17(adata, log, mean_threshold, cv_threshold, n_pcs, svd_solver, random_state, copy)
     48     )
     49     adata._inplace_subset_var(gene_subset)  # this modifies the object itself
---> 50     X_pca = pp.pca(
     51         pp.zscore_deprecated(adata.X),
     52         n_comps=n_pcs,

AttributeError: module 'scanpy.preprocessing._simple' has no attribute 'pca'

Versions: scanpy==1.5.1 anndata==0.7.4 umap==0.4.6 numpy==1.18.1 scipy==1.4.1 pandas==1.0.1 scikit-learn==0.22.1 statsmodels==0.11.0 python-igraph==0.8.2 louvain==0.7.0 leidenalg==0.7.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LuckyMDcommented, Jul 28, 2020

The last minor release of Scanpy was version 1.5.1 in the end of May, so it hasn’t been released yet. You would need to update scanpy to the development version on master. This can be done via pip install git+https://www.github.com/theislab/scanpy@master or by having a local copy of the scanpy repo, updating this and installing from source via pip install . 😃.

0reactions
katherineiocommented, Jul 28, 2020

Hello! I’m getting the same AttributeError as well. Is the issue on my end or has the fix not been applied yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Summer student from Pinello Lab at Harvard seeking help from ...
I am a student at Winsor High School in Boston. I'm fascinated by scRNA-seq ... Summer student from Pinello Lab at Harvard seeking...
Read more >
Join us - The Needleman Lab
Undergraduate and high school students have contributed to a number of past and current projects in the lab. With the guidance of a...
Read more >
Qian Zhang (@qianzhangqz) / Twitter
Lab at. @harvardmed. is recruiting a full-time bioinformatics research ... a summer 2022 internship program with the theme "Machine Learning for all".
Read more >
ISU prepares alum Basheer Becerra to star in Harvard ...
Since he was at home this past semester as a result of the coronavirus (COVID-19) pandemic, Becerra returned to Illinois State as a...
Read more >
An interview with Samantha Morris - The Company of Biologists
Her lab aims to understand how cell identity can be reprogrammed, focusing on the ... For this project, we collaborate with Luca Pinello, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found