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

A bug in ieugwasr::ld_matrix_local #38

Open
sskimb opened this issue Sep 12, 2023 · 6 comments
Open

A bug in ieugwasr::ld_matrix_local #38

sskimb opened this issue Sep 12, 2023 · 6 comments

Comments

@sskimb
Copy link

sskimb commented Sep 12, 2023

The following is a result of reading a bim file generated by plink, as implemented in ld_matrix_local.

  V1         V2 V3        V4   V5 V6
1  1  rs3811450  0 154551032 TRUE  C
2  1 rs11264222  0 154554357 TRUE  C
3  1     rs9616  0 154555733 TRUE  A

In this case, V5 has all "T" alleles. However, read.table in R guessed that this column must be a logical one as it is filled with only "T".
This behavior can be suppressed only in R 4.3.0+ by supplying an option "tryLogical=F", whose result is:

  V1         V2 V3        V4 V5 V6
1  1  rs3811450  0 154551032  T  C
2  1 rs11264222  0 154554357  T  C
3  1     rs9616  0 154555733  T  A
@laleoarrow
Copy link

Is this fixed yet?

@laleoarrow
Copy link

Im using R4.3.3, I did not experience this issue.
image

@sskimb
Copy link
Author

sskimb commented Apr 16, 2024 via email

@laleoarrow
Copy link

laleoarrow commented Apr 16, 2024 via email

@sskimb
Copy link
Author

sskimb commented Apr 18, 2024

dat2MRInput.R.txt

This file is an R script, containing dat2MRInput and Harmonise_LD_dat functions.
In my procedure, both functions replace the corresponding functions, dat_to_MRInput and harmonise_ld_dat in the TwoSampleMR package.

Sincerely.

@laleoarrow
Copy link

dat2MRInput.R.txt

This file is an R script, containing dat2MRInput and Harmonise_LD_dat functions. In my procedure, both functions replace the corresponding functions, dat_to_MRInput and harmonise_ld_dat in the TwoSampleMR package.

Sincerely.

Really appreciate it! Thats really helpful!

Thanks,

Ao

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