Application of compressed sensing to genome wide association studies and genomic selection