R/ctwas_compute_gene_z.R
select_boundary_genes.Rd
Gets boundary genes and selects high PIP boundary genes
select_boundary_genes(
region_info,
weights,
gene_ids,
finemap_res,
susie_alpha_res,
combine_PIPs = TRUE,
mapping_table = NULL,
pip_thresh = 0.5,
filter_cs = FALSE,
ncore = 1
)
a data frame of region definitions.
a list of preprocessed weights.
a vector of selected gene IDs (z_gene$id). If specified, limits to these genes. Default: use all genes in weights.
a data frame of original finemapping result.
a data frame of original susie alpha result.
if TRUE, select boundary genes after combining gene PIPs.
a data frame of mapping between molecular traits and genes, with required columns: "molecular_id", "gene_name".
PIP cutoff for selecting boundary genes to merge regions.
If TRUE, only select boundary genes in credible sets for region merge.
The number of cores used to parallelize computation over regions
a list with boundary genes and selected boundary genes