Description Usage Arguments Value Author(s) References See Also Examples
View source: R/check_continue.R
This function calculates the number of SNPs per segment. In case that there exist segments with less than 2 SNPs the user is asked for input to continue ("y") or not ("n"). In case that the user wants to continue, the recombination rates for segments without SNPs are estimated via imputation.
1 | check_continue(seqName, segs, accept, format)
|
seqName |
A character string containing the full path and the name of the sequence file in |
segs |
A (non-negative) integer which reflects the number of segments considered. It is calculated in the program based on the user-defined segment length. |
accept |
an optional logical value: by default |
format |
A character string which can be |
This function returns TRUE
in case that all segments contain SNPs. It will also return TRUE
if the user agrees to continue although there exist segments without SNPs. It returns FALSE
if the user denies to continue due to segments without SNPs.
Philipp Hermann philipp.hermann@jku.at, Andreas Futschik
Paradis E., Claude J. & Strimmer K. 2004. APE: analyses of phylogenetics and evolution in R language. Bioinformatics 20: 289-290.
1 2 | ##### Do not run these examples #####
##### check_continue(seqName, segs = segs) #####
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.