sunduanchen / Scissor

Scissor package
GNU General Public License v3.0
168 stars 29 forks source link

Update Scissor.R with 'data' Layer for Seurat V5 #62

Open yifanfu01 opened 1 month ago

yifanfu01 commented 1 month ago

Hi sunduanchen, Due to the upgrade of Seurat, the way to get data matrix has changed. Guys met error:

infos1 <- Scissor(bulk_dataset, sc_dataset, phenotype, alpha = 0.05, family = "cox", Save_file = 'Scissor_LUAD_survival.RData')
Error in as.matrix(sc_dataset@assays$RNA@data) :
no slot of name"data" for this object of class "Assay5"

as mentioned in #59 Here, I fixed the problem and hope it will help.

sunduanchen commented 1 month ago

Thanks a bunch.

Best, Duanchen

On Sat, 11 May 2024 at 02:01, Jacob Yifan FU @.***> wrote:

Hi sunduanchen, Due to the upgrade of Seurat, the way to get data matrix has changed. Here, I fixed the problem and hope it will help.

You can view, comment on, or merge this pull request online at:

https://github.com/sunduanchen/Scissor/pull/62 Commit Summary

File Changes

(1 file https://github.com/sunduanchen/Scissor/pull/62/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/sunduanchen/Scissor/pull/62, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYQWDFPG52NCYS2NEHV53TZBUDN5AVCNFSM6AAAAABHRAYZY2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TAMJXGQ4TANQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>