8000 Error while creating a loom file from anndata object · Issue #2 · aertslab/SCopeLoomPy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error while creating a loom file from anndata object #2
Open
@mellyS

Description

@mellyS

Hi ,
I am currently trying to convert an anndata file ( I got it through a processed Seurat object conversion) to a Loom file. However, I got the following error at the reading step .
Does anyone have any idea to fix it ?


AttributeError Traceback (most recent call last)
in
1 # from AnnData object
2 loom = Loom(file_path="AnndataP4.loom", title="TestP4", hierarchy=["","",""])
----> 3 loom.from_anndata(ann_data=p4adata)
4 #loomP4.from_h5ad("P4.h5ad")

~/anaconda3/lib/python3.7/site-packages/scopeloompy/init.py in from_anndata(self, ann_data)
63 self.matrix = self.matrix.tocoo()
64 self.init()
---> 65 self.finalize()
66
67 def from_h5ad(self, file_path):

~/anaconda3/lib/python3.7/site-packages/scopeloompy/init.py in finalize(self)
109 row_attrs=self.row_attrs,
110 col_attrs=self.col_attrs,
--> 111 file_attrs=self.global_attrs)
112
113 def init_meta_data_embeddings(self):

~/anaconda3/lib/python3.7/site-packages/loompy/loompy.py in create(filename, layers, row_attrs, col_attrs, file_attrs)

AttributeError: 'list' object has no attribute 'shape'

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

      0