
haplotype_tbl()
returns a tbl_df summarising
all unique haplotype frequencies and duplicates into a single row.
haplotype_tbl(dna, clean = TRUE, collapseSubstrings = TRUE, verbose = TRUE)
an object of class tbl_df.
an object of class DNAbin.
logical. Whether to remove or not remove non ACTG bases from alignment.
logical. Whether to collapse or not collapse shorter but identical sequences.
logical. Returns a warning if any sequence contains non ACTG bases. See clean_dna for details.
Rupert A. Collins, Pedro S. Bittencourt.
haplotype_tbl()
uses a combination of clean_dna and hap_collapse to summarise
haplotypes into a tibble. Each row of the tibble has an unique haplotype,
its frequency and all its collapsed duplicates in a flattened string.
# get haplotype table
haplotype_tbl(geophagus)
Run the code above in your browser using DataLab