stephenslab / susieR

R package for "sum of single effects" regression.
https://stephenslab.github.io/susieR
Other
172 stars 43 forks source link

Order of input #138

Closed katherinef closed 2 years ago

katherinef commented 2 years ago

Hello,

I am using susie_rss for genetic fine-mapping:

susie_rss(z_scores, cor_matrix.cor)

where z_scores is a vector of z scores from logistic regression and cor_matrix.cor is a correlation matrix of the genotypes of 1,170 variants (always in the same order as the z scores vector).

The issue is that the results do not seem to be robust to the order of variants in the two files. If I remake the input files with the variants in a different order I get a different number of credible sets and different variants within the sets.

Do you know why this might be and whether the results can be made to be the same irrespective of order?

Best wishes,

Kath

stephens999 commented 2 years ago

that is weird -- I think the order should not matter. Can you give a reproducible example?

katherinef commented 2 years ago

My apologies - it was my reordering that was the problem, not Susie. Thanks for your response! Kath