Of people who have AS, 90% to 95% have the HLA-B27 gene, which is connected to inflammatory conditions of the joints.