Discovering biologically relevant motifs in nucleic or amino acid sequence data