Skip to content

minor fix bugs#364

Merged
gaow merged 2 commits intoStatFunGen:mainfrom
xueweic:main
Mar 23, 2025
Merged

minor fix bugs#364
gaow merged 2 commits intoStatFunGen:mainfrom
xueweic:main

Conversation

@xueweic
Copy link
Copy Markdown
Contributor

@xueweic xueweic commented Mar 23, 2025

  1. In LD.R, exchange arrange and check order. This is the same logic in the previous code, otherwise, we need to input an ordered ld_meta_file. - Met an error in all genes, since our ld_meta_file is not ordered by chr and pos.
  2. In raiss.R, if sumstat does not contain known varaints (raiss_single_matrix.R), it return NULL. we can not check nrow. - Met an error in chr1_ENSG00000143418 and chr1_ENSG00000143437 in Kunkle sumstat. Kunkle does not have variants in the first LD block, then it reported an error Error in if (nrow(combined_result) == 0) { : argument is of length zero.

xueweic and others added 2 commits March 23, 2025 09:42
1. In LD.R, exchange `arrange` and `check order`. This is the same logic in the previous code, otherwise, we need to input an ordered `ld_meta_file`. - Met an error.
2. In raiss.R, if sumstat does not contain known varaints (raiss_single_matrix.R), it return NULL. we can not check `nrow`. - Met an error.
@gaow gaow merged commit 921b1c0 into StatFunGen:main Mar 23, 2025
5 of 7 checks passed
@gaow
Copy link
Copy Markdown
Contributor

gaow commented Mar 23, 2025

Met an error in all genes, since our ld_meta_file is not ordered by chr and pos.

okay i caught this when i was working on the code yesterday thinking that if we "arrange" it already then the consecutive check would not make sense. Maybe this function is not that useful after all anyways and it is cleaner we remove that check.

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

Successfully merging this pull request may close these issues.

2 participants