Skip to main content

Part 1: Changing the mode of inheritance

From the earlier session it certainly looked like O blood group is associated with severe malaria outcomes.

But how do we know it was really an effect of (the recessive trait) O blood group? Could the variant have acted additively?

To find out let's load the data again and encode the status variable as before:

library( tidyverse )
data = (
read_tsv( "https://www.chg.ox.ac.uk/bioinformatics/training/msc_gm/2024/data/o_bld_group_data.tsv" )
%>% mutate(
status = factor( status, levels = c( "CONTROL", "CASE" ))
)
)
Challenge 1

Encode three new variables o_add, o_dom, o_rec to represent additive, dominant and recessive encodings of the O blood group variant rs8176719. (Note. the deletion allele is associated with O blood group, so orient things that way.)

Try do do this yourself! If you get stuck, look at the tabs above for hints.
Challenge 2

Use logistic regression to test for association between each of your encodings of the rs8176719 genotype above and malaria case status (in the status variable.) What do you conclude?

Can you remember how to do this?.