A Comparative Study of Bases for Motif Inference