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

Confirmation of the sample size value n #224

Open
laleoarrow opened this issue Apr 21, 2024 · 4 comments
Open

Confirmation of the sample size value n #224

laleoarrow opened this issue Apr 21, 2024 · 4 comments

Comments

@laleoarrow
Copy link

laleoarrow commented Apr 21, 2024

Hi all,
I found the n in the source code of the coloc package’s susie function, where there is a section that handles the n parameter for sample size like:

## at 0.12.6 susieR introduced need for n = sample size
  if(!("n" %in% names(susie_args)))
	  susie_args=c(list(n=d$N), susie_args)

If Im getting this right, it’s should be that the n=samplesize (for gwas summary data) parameter is only applicable when an in-sample LD matrix is used. When the LD matrix is inferred using a reference panel, such as the 1kg panel, then nshould represent the sample size of the reference panel. For instance, if the LD matrix is calculated using the European subset of the 1kg reference individual data, n should be approximately 500?

@laleoarrow laleoarrow changed the title Bug in coloc-susie susie_args=c(list(n=d$N), susie_args) Conformation of the sample size value n Apr 21, 2024
@laleoarrow laleoarrow changed the title Conformation of the sample size value n Confirmation of the sample size value n Apr 21, 2024
@gaow
Copy link
Member

gaow commented Apr 21, 2024

The sample size is relevant to z-scores, ie, how many samples are used to compute the association summary statistics. It should not have to do with the sample size for LD reference panels.

@pcarbo
Copy link
Member

pcarbo commented Apr 22, 2024

Correct, N is the sample size for the assocation statistics (e.g., z-scores).

@pcarbo
Copy link
Member

pcarbo commented Apr 22, 2024

@leoarrow1 If the documentation is unclear in coloc, please post an issue on the coloc GitHub, and feel free to reference this discussion here.

@laleoarrow
Copy link
Author

Thanks for the confirmation.

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

3 participants