Description Usage Arguments Value Author(s)
This is the main optimization function for updog.
1 2 3 4 5 6 7 8 9 10 11 | updog_update_all(ocounts, osize, ploidy, p1counts = NULL, p1size = NULL,
p2counts = NULL, p2size = NULL, print_val = TRUE, tol = 10^-4,
maxiter = 500, commit_num = 4, min_disp = 0, update_outmean = FALSE,
update_outdisp = FALSE, update_outprop = TRUE, update_bias_val = TRUE,
update_seq_error = TRUE, update_od_param = TRUE, update_pgeno = TRUE,
p1geno = round(ploidy/2), p2geno = round(ploidy/2), seq_error = 0.01,
od_param = 0.01, bias_val = 1, out_prop = 0.001, out_mean = 0.5,
out_disp = 1/3, non_mono_max = 2, bound_bias = FALSE,
seq_error_mean = -4.7, seq_error_sd = 1, bias_val_mean = 0,
bias_val_sd = 0.7, allele_freq = 0.5, model = c("f1", "s1", "hw",
"uniform"), verbose = FALSE)
|
ocounts |
A vector of non-negative integers. The ith element is the number of reads of the reference allele in the ith child. |
osize |
A vector of positive integers. The ith element is the total number of reads for the ith child. |
ploidy |
A positive integer. The number of copies of the genome in the species. This is the assumed to be the same for all individuals. |
p1counts |
A vector of non-negative integers. The ith element
is the number of reads of the reference allele in the ith
sample of parent 1. If |
p1size |
A vector of positive integers. The ith element is the
total number of reads in the ith sample of parent 1. If
|
p2counts |
A vector of non-negative integers. The ith element
is the number of reads of the reference allele in the ith
sample of parent 2. If |
p2size |
A vector of positive integers. The ith element is the
total number of reads in the ith sample of parent 2. If
|
print_val |
A logical. Should we print the updates ( |
tol |
The stopping criterion |
maxiter |
The maximum number of iterations |
commit_num |
The number of consecutive iterations where the parental genotypes do not change before we commit to those parental genotypes. |
min_disp |
The minimum value for the over-dispersion parameter of the outlier distribution. If this gets too small, then we can be overly confident in points being outliers. |
update_outmean |
A logical. Should we update |
update_outdisp |
A logical. Should we update |
update_outprop |
A logical. Should we update |
update_bias_val |
A logical. Should we update |
update_seq_error |
A logical. Should we update |
update_od_param |
A logical. Should we update |
update_pgeno |
A logical. Should we update |
p1geno |
The initial value of the first parental genotype. |
p2geno |
The initial value of the second parental genotype. |
seq_error |
The initial value of the sequencing error rate. |
od_param |
The initial value of the overdispersion parameter. |
bias_val |
The initial value of the bias parameter. |
out_prop |
The initial value of the proportion of points that are outliers. |
out_mean |
The initial value of the mean of the outlier distribution. |
out_disp |
The initial value of the over-dispersion parameter of the outlier distribution. |
non_mono_max |
The maximum number of iterations to allow non-monotonicity of likelihood. |
bound_bias |
A logical. Should we bound |
seq_error_mean |
The mean of the logit-normal prior on the sequencing error rate, which corresponds
to |
seq_error_sd |
The standard deviation of the logit-normal prior on the sequencing error rate, which
corresponds to |
bias_val_mean |
The prior mean on the log of |
bias_val_sd |
The prior standard deviation on the log of |
allele_freq |
The allele frequency if |
model |
The model for the genotype distribution. Do we assume an
F1 population ( |
verbose |
A logical. Should we output a lot more ( |
A list of the following elements
bias_val
: The estimated bias parameter.
seq_error
: The estimated sequencing error rate.
od_param
: The estimated overdispersion parameter.
p1geno
: The estimated genotype of one parent.
p1geno
: The estimated genotype of the other parent.
out_prop
: The estimated proportion of points that are outliers.
out_mean
: The estimated mean of the outlier distribution.
out_disp
: The estimated overdispersion parameter of the outlier distribution.
prob_out
: A vector. Each element of which is the posterior probability that a point is an outlier.
allele_freq
: The estimated allele-frequency of the reference allele.
p1_prob_out
: The posterior probability that parent 1 is an outlier.
p2_prob_out
: The posterior probability that parent 2 is an outlier.
num_iter
: The number of iterations the optimization program was run.
convergence
: 1 is we reached maxiter
and 0 otherwise.
llike
: The final log-likelihood of the estimates.
hessian
: The Fisher information under the parameterization (s, ell, r), where s = log(bias_val) = log(d),
ell = logit(seq_error) = logit(eps), and r = - logit(od_param) = - logit(tau).
David Gerard
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.