mglev1n / ldscr

LD Score Regression in R
https://mglev1n.github.io/ldscr/
Other
31 stars 3 forks source link

Format of raw data #5

Closed senmingjiu closed 1 year ago

senmingjiu commented 1 year ago

Hi, if I want to do LDSC analysis with this R package of yours, should I organize the raw data into a certain form? What should the form be like? Thank you for your R package.

mglev1n commented 1 year ago

The format of the raw data (provided to the ldsc_h2 and ldsc_rg functions) should be either dataframes or text files, which Must contain at least columns named SNP (rsid), A1 (effect allele), A2 (non-effect allele), N (total sample size) and Z (Z-score).