Description Usage Arguments Value See Also
View source: R/ArchitectureModel.R
Optimize lossfunctionp
. For basic usage, just give dat
and it should do everything else for you. You sometimes have to
change thresholds
to fit the shape of your data; check this with
architectureplot
.
This is a 1-D non-convex optimization problem. The first challenge is that many
parameters don't have a finite loss, so we first do a linesearch
to identify a valid range.
We then either do a sequence of linesearches to arrive at a region, or go straight for a
convex optimizer ("optimize" or "Brent" from optim
). Line searches
are slower but cope better with small datasets.
1 2 3 4 5 6 7 8 9 10 | fullsearch(
dat,
bins = defaultbins(),
thresholds = c(2.5, 3),
sigma = NULL,
method = c("linesearch", "optimize"),
nlinesearch = 2,
nline = 21,
range = c(-2, 2)
)
|
dat |
A data frame of (f,beta) pairs |
bins |
(Default: |
thresholds |
(Default : |
sigma |
(Default: NULL, meaning use the best value) Genomic architecture sigma. Don't change unless you know what you are doing... |
method |
(Default: c("linesearch","optimize")) The set of all methods to use (out of "linesearch", "optimize" and "Brent"). Good values are c("linesearch","optimize"), which tries to find global maxima, and "Brent" which tries to find a local maxima only, but is slightly faster. Only specify up to one of "Brent" and "optimize". |
nlinesearch |
(Defaul: 1) Number of linesearch parameters to evaluate, controlling the resolution near the edges of the valid range. |
nline |
(Defaul: 21) Number of linesearch parameters to evaluate in . |
range |
(Default: c(-2,2)) The lower and upper bounds provided to |
A list as returned by the optimiser, with additionally dat
, thresholds
, bins
, range
and sigma
as provided, and s
as inferred.
linesearch
to explore a range of s, or bootstrap
to generate a distribution of estimates of s.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.