Sort sum stats by genomic coordinates

sort_coords(sumstats_dt, sort_coordinates = TRUE)

Arguments

sumstats_dt

data table obj of the summary statistics file for the GWAS

sort_coords

Whether to sort by coordinates.

make_ordered

Make CHR into an ordered factor to ensure they go from 1-22, X, Y.

Value

Sorted sumstats_dt