I want to create motif of different length kmers. Following code works for kmers of same length but not different length.What to do ?
from Bio import motifs
sequences = SeqIO.parse("myfile.fasta","fasta")
instances = []
for data in sequences:
instance = data.seq
instances.append(instance)
motif = motifs.create(instances)