Learn R Programming

dartR (version 1.1.11)

gl.report.bases: Summary of base pair frequencies

Description

This script calculates the frequencies of the four bases, and the frequency of transitions and transversions in a DArT genlight object.

Usage

gl.report.bases(gl)

Arguments

gl

-- name of the DArT genlight object [required]

Value

Matrix containing the percent frequencies of each base (A,C,T,G) and the transition and transversion frequencies.

Details

The script checks if trimmed sequences are included in the locus metadata, and if so, tallies up the numbers of A,T,G and C bases. Only the reference state at the SNP locus is counted. Counts of transitions and transversions assume that there is no directionality, that is C>T is the same as T>C, because the reference state is arbitrary.

Examples

Run this code
# NOT RUN {
lst <- gl.report.bases(testset.gl)
lst
# }

Run the code above in your browser using DataLab