Scissor icon indicating copy to clipboard operation
Scissor copied to clipboard

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

Open yifanfu01 opened this issue 1 year ago • 1 comments

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.

yifanfu01 avatar May 10 '24 18:05 yifanfu01

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:

  • https://github.com/sunduanchen/Scissor/pull/62.patch
  • https://github.com/sunduanchen/Scissor/pull/62.diff

— 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: @.***>

sunduanchen avatar May 11 '24 00:05 sunduanchen