Skip to content

AttributeError when calling nicheformer.pp.basic_preproc() #36

@yang-lin-pp

Description

@yang-lin-pp

I'm encountering an error when trying to use the nicheformer.pp.basic_preproc() function in the Nicheformer package. The error message is as follows:

AttributeError: module 'nicheformer' has no attribute 'pp'

Steps to Reproduce:

Install the Nicheformer package and its dependencies.

Import the package using import nicheformer.

Attempt to call the preprocessing function with nicheformer.pp.basic_preproc(adata) where adata is an AnnData object.

Expected Behavior:
I expect the preprocessing function to execute without errors and preprocess the AnnData object.

Actual Behavior:
An AttributeError is raised, indicating that pp is not an attribute of the nicheformer module.

Environment:

Nicheformer version: [version number]

Python version: [version number]

Other relevant packages: [list any other packages you're using]

Could you please help me understand why this error occurs, or if there’s a different method I should use to access the preprocessing functions in Nicheformer?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions