| ras_scan_external_original | R Documentation |
The in-memory counterpart of ras_scan_external, for
cohorts small enough that a dense n \times m genotype matrix and its
PGS matrix fit in RAM. At biobank scale use
ras_scan_external instead: at 453,698 samples by 332,690
variants the dense double alone is over a petabyte.
ras_scan_external_original(
geno,
phenotype,
covariates,
covariate_cols,
weights,
is_continuous = TRUE,
skip1 = 10,
skip2 = 20,
min_window_size = 5,
max_window_size = 100,
scan_test = c("glm", "score"),
chrom = 1,
save_dir = NULL
)
geno |
Numeric |
phenotype |
Numeric vector of length |
covariates |
Data frame with |
covariate_cols |
Character vector of covariate column names. |
weights |
Numeric vector of length |
is_continuous |
Logical. |
skip1, skip2, min_window_size, max_window_size |
Scan geometry, as in
|
scan_test |
|
chrom |
Integer/character. Chromosome label used in output filenames. |
save_dir |
Character or |
A list with x (grid point variant indices) and y (the
profile).
ras_scan_external, ras_harmonize_sumstats
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.