R/ctwas_screen_regions.R
screen_regions.Rd
Screens regions with strong signals to be used in fine-mapping step.
screen_regions(
region_data,
LD_map,
weights,
group_prior = NULL,
group_prior_var = NULL,
L = 5,
min_snps = 2,
min_genes = 1,
filter_L = TRUE,
filter_nonSNP_PIP = FALSE,
min_nonSNP_PIP = 0.5,
min_abs_corr = 0.1,
snps_only = FALSE,
LD_format = c("rds", "rdata", "mtx", "csv", "txt", "custom"),
LD_loader_fun,
ncore = 1,
logfile = NULL,
verbose = FALSE,
...
)
a list object indexing regions, variants and genes.
a data frame with filenames of LD matrices and SNP information for each of the regions.
a list of preprocessed weights.
a vector of two prior inclusion probabilities for SNPs and genes.
a vector of two prior variances for SNPs and gene effects.
the number of effects for susie.
minimum number of SNPs in a region.
minimum number of genes in a region.
If TRUE, screening regions with estimated L > 0.
If TRUE, screening regions with
total non-SNP PIP >= min_nonSNP_PIP
.
If screening by non-SNP PIPs,
regions with total non-SNP PIP >= min_nonSNP_PIP
will be selected to run finemapping using full SNPs.
Minimum absolute correlation allowed in a credible set.
If TRUE, use only SNPs when estimating L.
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"
.
The number of cores used to parallelize susie over regions.
The log filename. If NULL, will print log info on screen.
If TRUE, print detail messages.
Additional arguments of susie_rss
.
a list, containing a data frame of selected region data, estimated L for selected regions, and a data frame of screening summary for all regions.