Why is the AFS returning decimal values? #3092
Unanswered
MAlejandraJimenezM
asked this question in
Q&A
Replies: 1 comment
-
Hi! Take a look at https://tskit.dev/tskit/docs/stable/stats.html#allele-frequency-spectrum, especially paragraphs 2 and 4.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, im new to tskit and I am using it to generate the Allele Frequency Spectrum (AFS) with the following R code:
Nothing crazy!
However, when I inspect the output, I notice that some values are decimals instead of integers:
[1] 0.0 47.0 25.5 18.0 12.0 4.0 8.0 3.0 3.0 4.0 6.5 ...
I expected the AFS values to be integers since they represent allele counts at different frequencies.
What could be causing the presence of decimal values in the AFS? Is this expected behavior due to how tskit calculates the spectrum? normalization? or is there an additional step I should take to obtain only integer values?
I’d appreciate any insights!
Beta Was this translation helpful? Give feedback.
All reactions