Genetic and genomic analysis of legume flowers and seeds