Skip to content

Unable to convert AnnData to DataFrame #35

@harisorgn

Description

@harisorgn

Hi there, I'm running the example from the docs page where you construct an AnnData object from scratch add data and names and then convert to DataFrame but I'm getting

ERROR: ArgumentError: no default `Tables.columns` implementation for type: AnnData
Stacktrace:
 [1] _columns
   @ C:\Users\organ\.julia\packages\Tables\cRTb7\src\fallbacks.jl:276 [inlined]
 [2] columns
   @ C:\Users\organ\.julia\packages\Tables\cRTb7\src\fallbacks.jl:258 [inlined]
 [3] DataFrame(x::AnnData; copycols::Nothing)
   @ DataFrames C:\Users\organ\.julia\packages\DataFrames\b4w9K\src\other\tables.jl:57
 [4] DataFrame(x::AnnData)
   @ DataFrames C:\Users\organ\.julia\packages\DataFrames\b4w9K\src\other\tables.jl:48
 [5] top-level scope
   @ REPL[33]:1

I have latest Muon.jl and DataFrames.jl, here's ] st :

  [9d22b198] AllenSDK v0.3.1
  [39de3d68] AxisArrays v0.4.8
  [13f3f980] CairoMakie v0.15.8
  [992eb4ea] CondaPkg v0.2.33
  [a93c6f00] DataFrames v1.8.1
  [5789e2e9] FileIO v1.17.1
  [e9467ef8] GLMakie v0.13.8
  [cd3eb016] HTTP v1.10.19
  [446846d7] Muon v0.2.1
  [9bb6cfbd] NRRD v0.6.5
  [6099a3de] PythonCall v0.9.31

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