View source: R/classes_methods.R
MergeIdenticalHaplotypes | R Documentation |
If any alleles within a locus have identical alleleNucleotides
values
(including those identical based on IUPAC ambiguity codes),
this function merges those alleles, summing their read depths. This function is
primarily intended to be used internally in cases where tags vary in length
within a locus, resulting in truncated alleleNucleotides
.
MergeIdenticalHaplotypes(object, ...)
object |
A |
... |
Additional arguments (none implemented). |
A RADdata
object identical to object
, but with alleles merged.
Lindsay V. Clark
MergeRareHaplotypes
, readProcessIsoloci
data(exampleRAD) # change a haplotype for this example exampleRAD$alleleNucleotides[5] <- "GY" nAlleles(exampleRAD) exampleRAD <- MergeIdenticalHaplotypes(exampleRAD) nAlleles(exampleRAD)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.