Dear Luis,
So I got it cleared that the field "AlleleSequence" is the "TrimmedSequence" field. Using the commands you sent, I replaced that field and so now the function "gl.report.bases" works.
I was also able to calculate the % of transitions and transversions.
> test <- readRDS("C:/bbbbb/cccccc/xxxx/yyyy/test.rds")
> test$other$loc.metrics$TrimmedSequence <- test$other$loc.metrics$AlleleSequence
> ReportBases <- gl.report.bases (test, plot.out = TRUE, save2tmp = FALSE, verbose = NULL)
Starting gl.report.bases
Processing genlight object with SNP data
Counting the bases
Counting Transitions and Transversions
Average trimmed sequence length: 69 ( 69 to 69 )
Total number of trimmed sequences: 400
Base frequencies (%)
A: 22.06
G: 30.92
T: 19.04
C: 27.98
Transitions : 59.25
Transversions: 40.75
tv/ts ratio: 1.454
Is there any way that the command also returns the actual number of Tv and Ts? I wanted to look at the actual number of A/G and C/T transitions and A/C, A/T, C/G and G/T transversions. Something like this below:
Thank you.
Best regards
Swati