Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SNP number of output file dose not match the stdout #24

Open
xinyu-c9 opened this issue Jun 24, 2023 · 1 comment
Open

The SNP number of output file dose not match the stdout #24

xinyu-c9 opened this issue Jun 24, 2023 · 1 comment

Comments

@xinyu-c9
Copy link

I was hoping I could ask for your help with something. Recently, I ran the DBSLMM algorithm and found that the SNP number of output file does not match the stdout.

The file sizes of the result file are listed below, from which you can see the file size of chr10, chr13, and so on are significantly lower than other files.

image

Following are the result files of chr10 and chr13

image

image

Following are the stdout of chr10 and chr13

image

image

according to the stdout file, the output SNP site number for chr10 and chr13 should be 37139 and 29556, but the result file only contains a few SNPs.

Then after counting the number of lines in result files, and comparing it with stdout(I add up the large effect number and small effect number), I found the difference in chr3 5 7 10 11 13 15 16 17 18 20. Some of them are very different, those with small file sizes in Figure 1 belong to this type. The other part is only a few hundred gaps. This is so weird.

This is my code when ran the DBSLMM algorithm:

export OMP_NUM_THREADS=1
export LD_LIBRARY_PATH=/software/conda/envs/wdl/lib:$LD_LIBRARY_PATH
for i in <all 22 chromosome gwas file name>
do
        j=`basename $i | sed -e 's/summary_chr\(.*\).assoc.txt/\1/'`
        /software/conda/envs/wdl/bin/Rscript \
        /software/DBSLMM/DBSLMM/software/DBSLMM.R \
            --summary $i \
            --outPath ./ \
            --plink /software/plink/plink \
            --model DBSLMM \
            --dbslmm /software/DBSLMM/DBSLMM/scr/dbslmm \
            --ref /LD_reference/DBSLMM/plink  \
            --n $N \
            --nsnp $n_snp \
            --type t \
            --block /software/DBSLMM/DBSLMM/block_data/eur/chr$j.bed \
            --h2 0.012581797  \
            --h2f 1 
done

if you had any tips or suggestions for how to approach the issue. I would appreciate any help you could offer. Thank you so much in advance!

@biostat0903
Copy link
Owner

Hi Xingyu,
Thanks for your consideration for DBSLMM. I am also weird for the error.
I recommend you can solve your problems in two ways:

  1. check the block file of the wrong chromosomes;
  2. use the online version of DBSLMM: https://www.pgs-server.com/

Best,
Sheng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants