Trait locus analysis