View source: R/haps_functions.R
haps_ssites | R Documentation |
This function organizes higher-level information for creating haplotypes from matrices of segregating sites output from coalescent simulations.
haps_ssites(obj = NULL, fn = NULL)
obj |
Object containing segregating sites information.
This can be one of the following:
(1) A single |
fn |
A single string specifying the name of the file containing
the |
For what the seg_sites
field should look like in a list, see output from the
scrm
or coala
package.
(These packages are not required to be installed when installing
jackalope
.)
If using either of these packages, I encourage you to cite them. For citation
information, see output from citation("scrm")
or citation("coala")
.
A haps_ssites_info
object containing information used in create_haplotypes
to create variant haplotypes.
This class is just a wrapper around a list of matrices of segregating site info,
which you can view (but not change) using the object's mats()
method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.