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

chromosomewise lassosum and pseudovalidate error #39

Open
ghost opened this issue Jun 30, 2022 · 3 comments
Open

chromosomewise lassosum and pseudovalidate error #39

ghost opened this issue Jun 30, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 30, 2022

Dear tshmak

Hello, I am running the lassosum.pipeline in unix but I have some errors related to this package.

First chromosome-wise running is not working in some chromosomes.

I am using the code as follows.

out = lassosum.pipeline(cor=cor,chr=ss.df$CHR,pos=ss.df$BP,A1=ss.df$ALT,A2=ss.df$REF,ref.bfile="/data/pkg36/lassosum/data/refpanel",test.bfile=test.bfile,LDblocks="ASN.hg19")

out22 = lassosum.pipeline(cor=cor,chr=ss.df$CHR,pos=ss.df$BP,A1=ss.df$ALT,A2=ss.df$REF,ref.bfile="/data/pkg36/lassosum/data/refpanel",test.bfile=paste0(test.bfile,"_chr22"),LDblocks="ASN.hg19")
out21 = lassosum.pipeline(cor=cor,chr=ss.df$CHR,pos=ss.df$BP,A1=ss.df$ALT,A2=ss.df$REF,ref.bfile="/data/pkg36/lassosum/data/refpanel",test.bfile=paste0(test.bfile,"_chr21"),LDblocks="ASN.hg19")
out20 = lassosum.pipeline(cor=cor,chr=ss.df$CHR,pos=ss.df$BP,A1=ss.df$ALT,A2=ss.df$REF,ref.bfile="/data/pkg36/lassosum/data/refpanel",test.bfile=paste0(test.bfile,"_chr20"),LDblocks="ASN.hg19")

out22 and out21 works fine, but out20 gets an error like this:
image

But lassosum.pipeline for whole chromosomes; out works.
2

Second, as I merged the outcomes, in my case out22 and out21, validate works but pseudovalidate doesn't work.

out = merge(out22,out21)
v = validate(out)
v = pseudovalidate(out)

image (1)

I tried to figure out the reason for these errors, but I am lost.

If you have any comments or tips for fixing these, please let me know.

Best Wishes

@tshmak
Copy link
Owner

tshmak commented Jul 4, 2022

How many SNPs are there in each of the chromosomes?

Have you made sure that these also exist in test.bfile?

It sounds as if there are only a few SNPs.

@ghost
Copy link
Author

ghost commented Jul 4, 2022

I summarized the number of SNPs in each of the chromosomes in summary statistics file and test.bfile below.

I matched the SNPs in these two files to have the same number of SNPs and same SNPs.

image

It seems there exist enough SNPs in common, I think.

@tshmak
Copy link
Owner

tshmak commented Jul 5, 2022

The error message suggests that there are no SNPs left after matching the summary stats to test.bfile. It'd be difficult for me to figure out why without having your data. Would you be able to debug to see why that's the case? See e.g. https://support.rstudio.com/hc/en-us/articles/205612627-Debugging-with-the-RStudio-IDE

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

1 participant