combine variant information associated with a LD R matrix .RDS file.

write_ld_Rf(ld_R_dir, outname = outname, outputdir = getwd())

Arguments

ld_R_dir

The directory that contains all ld R matrices. the ld R matrices should not have overlapping positions.

outname

a string, the output name

outputdir

a string, the directory to store output

Value

A vector of the `ld_Rf` file names. The function will write one `ld_Rf` file for each chromosome, so the vector has length 22. The `ld_Rf` file has the following columns: chr region_name start stop RDS_file.