Description Usage Arguments Value
View source: R/SlimFunctions.R
Assuming that all mutations are of the same type (in SLIM simulation), different mutations at the same site are actually identical mutations from different lineages. This function re-codes these mutations so that they are only cataloged once.
1 | combine_identicalmutations(mutmap, hapmat, mut_type)
|
mutmap |
data.frame. The SNV_map with identical mutations |
hapmat |
sparseMatrix. The sparseMatrix of haplotypes |
mut_type |
character. the name of the mutation type for which to re-code identical mutations |
A list containing:
|
A sparse matrix of haplotypes. See details. |
|
A data frame cataloging SNVs in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.