Description Usage Arguments Value
Including the original alignment in the output with include_aln
can be useful for mapping calculate_alignment_stats
over a list
of alignments with map_df
to sort and filter
alignments by their summary statistics.
1 2 3 4 5 6 | calculate_alignment_stats(
alignment,
cutoff = 120,
cutoff_any = FALSE,
include_aln = FALSE
)
|
alignment |
Input alignment; must be a matrix of class "DNAbin". |
cutoff |
Numeric value indicating minimum exon length (optional); flag this alignment if any/all exons are less than the cutoff length. |
cutoff_any |
Logical; Should the alignment be flagged if any exons are shorter than the cutoff? The default, FALSE, means that the alignment will only be flagged if all exons are shorter than the cutoff value. |
include_aln |
Logical; Should the original alignment be included in the output list? |
A list including the following summary statistics:
List including vector of intron lengths
List including vector of exon lengths
Number of introns
Number of introns
Mean genetic distance between sequences in alignment
Maximum genetic distance between sequences in alignment
Total %GC content
Fraction of sites that are parsimony informative
Total exon length
Logical flag indicating whether alignment passed the minimum exon length cutoff or not
The original input alignment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.