Hi everyone,

I have a colony of bats where individuals tend to cluster. I have genotypes for a reasonable number of individuals from the colony and I know in which groups they have been caught.

I would like to test if relatedness within groups is significantly different from relatedness of the colony as an all. My specific hypothesis would be either Ha) individuals tend to cluster with relatives; or Hb) individuals tend to cluster with less related individuals.

I am using the ‘related’ R package (https://frasierlab.files.wordpress.com/) which is mostly an R implementation of Coancestry (Wang, J. 2011). The package includes a ‘grouprel’ function, which

“calculate the average relatedness within each of the specified groups. It will then generate a distribution of ‘expected’ relatedness values by randomly shuffling individuals between groups, while keeping each group size constant, and calculating the average relatedness within each group for each randomization step.”.

Contrary to the ‘Test of difference between groups’ implemented in Coancestry, it only allows to calculate “Relatedness Within Groups”, but the output files show the randomization for each group and to the overall data-set (considering group sample size).

To test my hypothesis my reasoning would be to compare the observed relatedness within each group with the expected relatedness within the colony as an all (is this correct?). Let’s take group 1 (g1) as an example (check Figure 1 attached). As you can see, relatedness within ‘g1’ is lower than expected considering the all colony.

According to the ‘related’ tutorial, the P-values from ‘grouprel’ function (shown in Figure 1) measure if relatedness is HIGHER than expected. What about if it’s lower? Would it be correct to calculate P in an inverse way? Returning to my example, if I calculate P to compare g1 and the remaining colony as ‘the percentage of randomized iterations where the expected values (for the all colony) were greater than or equal to the observed value (of g1)’ I will get p < 0.99. This means that 99% of the times, the expected relatedness is higher than the observed. Would it than be correct to state that only 1% of the times, expected relatedness of the all colony is lower than relatedness in g1 and therefore individuals in group g1 tend to cluster with less related individuals?

Of course I understand this is always dependent on sample size.

Thank you for your contribution!

- Francisco Amorim

More Francisco Amorim's questions See All
Similar questions and discussions