loupeR icon indicating copy to clipboard operation
loupeR copied to clipboard

no slot of name "counts" for this object of class "Assay5" error message

Open BartBryant opened this issue 1 year ago • 1 comments

thanks for developing loupeR, has worked great for all my Seurat objects to help share data to others

however, i have a seurat object where our collaborator removed doublets with 'singleCellTK'; however, now i get the error message #Error in select_assay(obj) :

no slot of name "counts" for this object of class "Assay5"

after running 'create_loupe_from_seurat( )' function from 'loupeR'.

seems 'singleCellTK' to filter doublets altered the structure of my SeuratObject, so what is the structure a SeuratObject needs to be in order to run loupeR?

thanks and let me know if you need more info

BartBryant avatar Jul 16 '24 20:07 BartBryant

By default loupeR looks for the counts matrix at assay$counts. It seems that the singleCellITK tool creates a new counts matrix at decontXcounts as can be seen here.

The error message should probably be updated and it should fail more gracefully.

For now you can get around this issue by directly calling create_loupe and passing in the appropriate parameters.

esiegel avatar Jul 17 '24 16:07 esiegel

Closing as there is a work around.

esiegel avatar Oct 29 '24 11:10 esiegel