| ras_scan_external | R Documentation |
Runs the Stage-1 forward scan with weights taken from an independent
external GWAS instead of a within-sample training split. Because the
weights are independent of the target cohort, no 50/50 split is drawn and
no repetitions are averaged: every sample is scanned once. Genotypes are
streamed from a .rasbin file in chunks. The in-memory implementation
is ras_scan_external_original.
ras_scan_external(
geno,
phenotype,
covariates,
covariate_cols,
weights,
is_continuous = TRUE,
skip1 = 10,
skip2 = 20,
min_window_size = 5,
max_window_size = 100,
chunk_snps = 5000,
chrom = 1,
save_dir = NULL
)
geno |
Either the path to a |
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 |
Integer. Stride of the profile grid in SNPs: the profile has
one value every |
skip2 |
Integer. Step, in SNPs, by which the scan window grows from
|
min_window_size, max_window_size |
Integer. Smallest and largest scan
window, in SNPs. Default |
chunk_snps |
Integer. SNP columns held in memory at a time. Bounds
peak memory at roughly |
chrom |
Integer or character. Chromosome label used in the output file
names. Default |
save_dir |
Character or |
The thresholds of the changepoint detector were set on averaged profiles,
whose noise floor is lower than that of a single-pass profile; calibrate
before treating a detection from this scan as a finding (for the box-scan
detector, ras_box_calibrate on permuted phenotypes).
A list with x (the SNP index of each grid point) and
y (the -\log_{10}(p) profile).
ras_harmonize_sumstats to build weights;
ras_scan for the split-based scan;
ras_box_detect and ras_detect to detect
regions on the profile.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.