Accounting for variability in the detection and use of markers for simple and complex traits.