Hello, I have a question about Weblogo in the Biopython motif.
Recently, I'm analyzing sequence data using biopython. I use example code to draw weblogo.
Using biopython, I can finally find motifs from DNA and amino acid sequence. It worked, but the error occurred in weblogo.
from Bio.motifs import Motif from Bio import motifs from Bio.Seq import Seq instances = [Seq('TTGGACC'), Seq('AACCTTA'), Seq('GCATTCA'), Seq('CCATGAG'), Seq('TAGGGAC'), Seq('TTGGTTA'), Seq('TGGGAGC')] m = motifs.create(instances) print(m.counts) Motif.weblogo(m, 'test.png')
Even if the length of the sequence is longer or shorter than the sequence which I write in this code, the file size of test.png is 25kb and there is no weblogo.
And I want to upload the test.png result file, but it is impossible to upload because the biostars page said 'image: Upload a valid image. The file you uploaded was either not an image or a corrupted image.'
I think that the result image file would be corrupted, but I don't know how to fix it.
Can anybody figure out this problem?