zhilizheng / SBayesRC

GNU General Public License v3.0
22 stars 2 forks source link

Error in computing weights #28

Closed SoleilChenxu closed 3 months ago

SoleilChenxu commented 4 months ago

Hi there,

I reveived the error below in computing the weights step. Do you have idea why this happended? "Running SBayesRC with annotation Annotation column 2 has too small XPX: 0, please remove this column from annotation data or perform re-scale. terminate called after throwing an instance of 'char const*"

The format of my annotation file is:

SNP Intercept Coding Conserved CTCF rs539032812 1 0 0 0 rs12238997 1 0 0 0 rs371890604 1 0 0 0 rs200531508 1 0 0 0

Thanks!

zhilizheng commented 4 months ago

Hi @SoleilChenxu,

Thanks for the reports. Could you check the "Coding" contains just one value after the SNP merging? The problem will usually be raised when the annotation only has single value after matching with the LD pannel.

Regards, Zhili

phycochow commented 4 months ago

Hi @zhilizheng, we are encountering the same error message. In our case, that would be 'Male_increased_heart_weight'? Could you show us where we can find the 'SNP merging' step please?

SNP Intercept Male_increased_heart_weight Female_increased_heart_weight

*Edit: The error in our case was caused by inproper SNP annotation where all SNPs were assigned zeroes. We have resolved the problem. Thank you for the tool

SoleilChenxu commented 4 months ago

Hi @SoleilChenxu,

Thanks for the reports. Could you check the "Coding" contains just one value after the SNP merging? The problem will usually be raised when the annotation only has single value after matching with the LD pannel.

Regards, Zhili

Hi Zhili, thank you for your reply. I just adjusted the format of annotation file, from txt file to tab-delimited file. It works now.

Best, Chenxu

zhilizheng commented 4 months ago

Hi @phycochow ,

You can merge your summary data with the ld_folder/snp.info. Sometimes, the annotation only contains single value when in subset of the SNPs.

Also as mentioned by @SoleilChenxu , the format sometimes matters. Although this looks strange to me. It could be possible that the anntoation is not recognozied by our program. The tab-delimited file works best. I will add the document for this.

Thanks for your reports.

Regards, Zhili