Skip to content

Documenting: interesting behaviour susie in small cases #264

@william-denault

Description

@william-denault

@pcarbo @stephens999

To reproduce this example your first need to have the susie package from the commit of Aug 2025, the data used in this example is now modified.

remotes::install_github("stephenslab/susieR@b5f5f7bddce71c1dfd2f401a24985338292e4f31")

Now we can look at the problematic example from microglia


library(susieR)
data(data_small)
y <- data_small$y
X <- data_small$X
dim(X)



res_susie <- susie(X  ,y,L = 10,verbose = FALSE)
res_susie$sets$cs
 
susie_plot(res_susie,y = "PIP")


ypred <- predict(res_susie,X)
pve <- 1 - drop(res_susie$sigma2/var(y))
round(100*pve,digits = 1)

This returns 10 CS and explains 99.9% of the variance


res_susie$sets$cs
$L1
[1] 4919 4920

$L2
[1] 455 456 457 462
 .....

Something interesting happen if one remove SNP in CS directly from the data set

res_susie1 <- susie(X[,-c(450:470)]  ,y,L = 10,verbose = FALSE)
 res_susie1$sets$cs
$L1
[1] 4898 4899

This is quite strange.

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