Skip to content

sc.tl.pca() return TypeError: __init__() got an unexpected keyword argument 'rmatmat' #1246

Closed

Description

@Linnas

...
image
with adata like this:
image

and adata.X:
image

...
...

Versions:

...
1.5.1

Activity

  1. ivirshup commented on May 25, 2020

    @ivirshup
    Member

    Thanks for the bug report! Could you include some version information about your environment?

  2. added
    Needs info❔
    on May 25, 2020
  3. Linnas commented on May 25, 2020

    @Linnas
    Author

    OS: Windows 10
    Python version: 3.7.7
    sc.logging.print_versions() gives
    scanpy==1.5.1 anndata==0.7.1 umap==0.3.10 numpy==1.18.4 scipy==1.3.1 pandas==0.25.1 scikit-learn==0.21.3 statsmodels==0.10.1 python-igraph==0.7.1 louvain==0.6.1 leidenalg==0.7.0

  4. Linnas commented on May 25, 2020

    @Linnas
    Author

    Maybe it's the upgrade to version 1.5.1 that leads to this bug, I can run this piece of code under 1.4.6.

  5. ivirshup commented on May 25, 2020

    @ivirshup
    Member

    Yes, it looks like we didn't update our dependency requirements correctly. It looks like the rmatmat argument for LinearOperators was only added as of 1.4.

    I believe using scanpy 1.5.1 with scipy>1.4 should fix this. Could you let me know if that solves your problem?

  6. Linnas commented on May 25, 2020

    @Linnas
    Author

    Yes, it works! Thank you for your suggestion.

  7. removed
    Needs info❔
    on May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions