Description Usage Arguments Value See Also
View source: R/ArchitectureModel.R
Compute summary statistics from a dataset of MAF,beta pairs, by binning data into histograms and comparing whether the theoretical proportion of SNPs above a threshold matches the observed proportion.
Uses annotatearchitecture
to annotate each SNP by with its prediction, and getsigma
to estimate sigma given s and the dataset.
1 2 3 4 5 6 7 | lossfunctionss(
dat,
s,
bins = defaultbins(),
thresholds = defaultthresholds(),
sigma = NULL
)
|
dat |
A dataframe containing summary statistics from a GWAS/BayesS/LDAK analysis. In its first two columns we need: MAF (f) and beta. |
s |
The selection coefficient assumed in the architecture model |
bins |
(Default: bins= |
thresholds |
(Default: |
sigma |
(Default: NULL meaning estimate from data) The scale parameter of the Genomic Architecture. Do not provide this with any search procedure as the results can be poor. |
A data frame containing: bins, count0 (The number of SNPs in the bin), count (the number of SNPs above the first threshold), count2 (the number of SNPs above the second threshold)
lossfunction
to turn this summary into a loss, and fullsearch
to search over s.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.