Skip to contents

ldsR

SNP heritability and genetic correlations

munge()
Munge GWAS summary statistics
ldsc_h2()
Estimate SNP heritability using LDscore regression for a single annotation
ldsc_rg()
Compute the genetic correlation between two traits

Partition Heritability

partition_h2()
Flexible partitioning of heritability
celltype_analysis()
Perform cell-type analysis using partitioned heritability

Helpful functions

liability_h2()
Convert an estimate of observed-scale heritability to liability scale heritability
calc_effective_n()
Calculate the effective sample size of a case-control GWAS
from_tidyGWAS()
Parse GWAS format of tidyGWAS::tidyGWAS()

Read and transform LDscore data

parse_parquet_dir()
Read LDscore format from ldsRs parquet format
ldsc_to_parquet()
Transform a directory of LDscores to parquet format
to_celltype_dataset()
Convert the output of many LDscores to a single dataframe suitable for ldsR
get_annot_names()
Print names of annotations in a ldscore fileset
combine_ld_data()
Combine two ldsc_to_parquet outputs