Skip to content

One SNP per credible set, is it normal? #256

@Ruiqi-CUB

Description

@Ruiqi-CUB

Hi there! Thank you so much for developing this awesome software!

I am new to fine mapping and I find it is very useful! However, I was wondering if you could help me with you experience to see if the results I got is biologically meaningful, or there is something going wrong.

I followed the tutorial here to do fine mapping on my dataset, after running susieR, I got 6 credible sets, and each of them contains one SNP as shown on the figure:

Image

I was just wondering if this is "normal". Would you mind helping me have a look?

Here is a breif describtion of my data and my code:
Input for susieR:

  1. LD matrix: SNPs in the +-1MB of the target set was extracted, and LD matrix were calculated by the plink command below:
plink --bfile OZ034921.1_20700459_1MB_GWAS_region \
    --keep-allele-order \
    --r square \
    --extract OZ034921.1_20700459_1MB_GWAS_snps.txt \
    --out OZ034921.1_20700459_1MB_GWAS_region_LD \
    --allow-extra-chr \
    --noweb
  1. gwas results: GWAS was run on a lightly filtered SNP set, and then results were extracted for SNPs in that +-1Mb window using the same file as above OZ034921.1_20700459_1MB_GWAS_snps.txt

I made sure that the order of snps match in those two files.

SusieR was run with the following command:

# read gwas
gwas <- fread("OZ034921.1_20700459_1MB_GWAS_region_GWAS.txt", header = FALSE)
setnames(gwas, c(
  "chr", "rs", "ps", "n_miss", "allele1", "allele0", "af",
  "beta", "se", "logl_H1", "l_remle", "l_mle",
  "p_wald", "p_lrt", "p_score"
))

# Read LD matrix without assigning column names
ld_raw <- fread("OZ034921.1_20700459_1MB_GWAS_region_LD.ld", header = FALSE)
# Convert to numeric matrix and remove dimnames
ld.mat <- as.matrix(ld_raw)
storage.mode(ld.mat) <- "numeric"
dimnames(ld.mat) <- NULL

fitted_rss <- susie_rss(
  bhat = gwas$beta,
  shat = gwas$se,
  R = ld.mat,
  n = 151,
  max_iter = 500  # increase iteration cap
)

The only warning I saw is:
"Failed to query server: Transport endpoint is not connected
HINT: For large R or large XtX, consider installing the Rfast package for better performance.
Warning message:
In system("timedatectl", intern = TRUE) :
running command 'timedatectl' had status 1" but it seems unrelevant

Here is the PIP plot if it is helpful

Image

Thank you very much!
Ruiqi

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