theMILOlab / SPATA2

A Toolbox for Spatial Gene Expression Analysis
77 stars 15 forks source link

Seurat V5 compatibility issue #94

Closed AMAwatermelon closed 4 months ago

AMAwatermelon commented 7 months ago

Thank you for developing this useful tool! I had a problem creating an object submission using initiateSpataObject_10X and was told that the counts matrix could not be found. I assumed that a change in the data structure in seurat V5 was causing the problem, and after downgrading seurat to 4.4, it worked fine. In addition, when selecting a high resolution image using initiateSpataObject_10X, there is a problem with the resolution and alignment of the image. Thanks again for creating this wonderful tool and I hope you will check this out when you have time.

acazelles commented 6 months ago

Hi, I tried to downgrading seurat to 4.4 and reinstall SPATA2 but it didn't work. I cannot create new SPATA2 object. I have this error : 03:25:53 Starting initiation. 03:25:53 No gene-set data.frame path specified. 03:25:53 Reading in .h5 file. 03:25:53 Loading from directory: '/shared/ifbstor1/projects/vpj/Données_Visium/processed/Ech_405_A1/outs' 03:25:58 Performing Seurat-analysis steps. 03:25:58 Calculating percentage of ribosomal and mitochondrial genes. 03:25:58 Removing stress genes and mitochondrial genes. Error in LayerData(): ! features must be a character vector, not a logical vector. Run rlang::last_trace() to see where the error occurred.

Do you have a solution ?

Thanks for your help !

Antoine

tsoruu commented 5 months ago

Hi, I have a problem with the same issue... The problem is that I've processed my data in Seurat v5 and was looking to do some trajectory analysis using SPATA2. The object I currently have is saved in RDS format and is in Seurat v5 format. Is there any workaround regarding this? Is there any way to downgrade the object to a lower version? I encounter a similar issue when trying to use CellTrek...

Thanks in advance and sorry for such inconvenience...

acazelles commented 5 months ago

Hi,

Finally, I downgraded Seurat version using the 4.1.1. And it works to create a new spata_object. And last week I had a new problem to create spata_object but I just had to update some packages. I hope it will work for you ! Antoine

De : Sava Savero @.> Date : dimanche, 7 janvier 2024 à 21:23 À : theMILOlab/SPATA2 @.> Cc : acazelles @.>, Comment @.> Objet : Re: [theMILOlab/SPATA2] Seurat V5 compatibility issue (Issue #94)

Hi, I have a problem with the same issue... The problem is that I've processed my data in Seurat v5 and was looking to do some trajectory analysis using SPATA2. The object I currently have is saved in RDS format and is in Seurat v5 format. Is there any workaround regarding this? Is there any way to downgrade the object to a lower version? I encounter a similar issue when trying to use CellTrek...

Thanks in advance and sorry for such inconvenience...

— Reply to this email directly, view it on GitHubhttps://github.com/theMILOlab/SPATA2/issues/94#issuecomment-1880304927, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEVHAVXQQPXBBXV7BQOIBH3YNNKCTAVCNFSM6AAAAABAAU4RXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGMYDIOJSG4. You are receiving this because you commented.Message ID: @.***>

tsoruu commented 5 months ago

Hi @acazelles! Thanks for the info! Anyway, I have an update regarding this. I'm able to create a SPATA object using Seurat v5.0.1 using the code found in https://github.com/satijalab/seurat/issues/7409#issuecomment-1584041598, but has a problem as all of the processed things that I've done in Seurat seems to be gone. I've got a problem processing my data in Seurat v4 for some reason and was wondering whether I could do it in v5, as it has succeeded. Downgrading Seurat seems kind of scary in my case as I'm afraid I couldn't access the processed RDS that is processed in v5...

simonmfr commented 5 months ago

Hi all, please update both SPATA2 and Seurat (v5), the compatibility issue should be fixed.