write_ld_Rf: combine variant information associated with a LD R matrix...

View source: R/ctwas_read_data.R

write_ld_RfR Documentation

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

Description

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

Usage

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.


simingz/ctwas documentation built on Sept. 17, 2024, 10:55 p.m.