Merges region data for cross-boundary genes
merge_region_data(
boundary_genes,
region_data,
region_info,
LD_map,
snp_map,
weights,
z_snp,
z_gene,
estimate_L = TRUE,
expand = TRUE,
L = 5,
maxSNP = Inf,
LD_format = c("rds", "rdata", "mtx", "csv", "txt", "custom"),
LD_loader_fun = NULL,
snpinfo_loader_fun = NULL,
ncore = 1,
verbose = FALSE,
logfile = NULL,
...
)
a data frame of boundary gene info
a list of original region_data
a data frame of region definitions
a data frame with filenames of LD matrices and SNP information for the regions.
a list of data frames with SNP-to-region map for the reference.
a list of preprocessed weights.
A data frame with columns: "id", "z", giving the z-scores for SNPs.
A data frame with columns: "id", "z", giving the z-scores for genes.
If TRUE, estimate L for merged regions.
If TRUE, expand merged region_data with full SNPs
the number of effects for susie.
Inf or integer. Maximum number of SNPs in a region. Default is Inf, no limit. This can be useful if there are many SNPs in a region and you don't have enough memory to run the program.
file format for LD matrix. If "custom", use a user defined
LD_loader_fun()
function to load LD matrix.
a user defined function to load LD matrix when LD_format = "custom"
.
a user defined function to load SNP information file, if SNP information files are not in standard cTWAS reference format.
The number of cores used to parallelize susie over regions
If TRUE, print detail messages
The log filename. If NULL, will print log info on screen.
Additional arguments of susie_rss
.
a list of merged region data, merged region info, LD_map, snp_map, and merged region IDs.