seqlogo icon indicating copy to clipboard operation
seqlogo copied to clipboard

Logo generation fails when there are 10 positions in a medium IC plot

Open aboyle opened this issue 5 months ago • 3 comments

Describe the bug When plotting seqlogo.seqlogo() an error is returned from ghostscript.

To Reproduce Steps to reproduce the behavior:

test2 = np.array([[380,  66, 110, 282],
       [406,  96,  85, 251],
       [486,  83, 101, 168],
       [744,   7,  66,  21],
       [ 72,   1, 750,  15],
       [107,   7, 714,  10],
       [ 27,   6, 802,   3],
                         [107,   7, 714,  10],
       [ 27,   6, 802,   3],
       [462,  67, 144, 165]])
seqlogo.seqlogo(seqlogo.CompletePm(test2))

Expected behavior Generation of a seqlogo.

Desktop (please complete the following information):

  • OS: Red Hat Enterprise Linux release 8.6 (Ootpa)
  • Python Version 3.9
  • NumPy Version 1.20.3
  • Pandas Version 1.3.4
  • matplotlib Version 3.4.3

Additional context I can solve this issue by plotting a large version of the seqlogo:

test2 = np.array([[380,  66, 110, 282],
       [406,  96,  85, 251],
       [486,  83, 101, 168],
       [744,   7,  66,  21],
       [ 72,   1, 750,  15],
       [107,   7, 714,  10],
       [ 27,   6, 802,   3],
                         [107,   7, 714,  10],
       [ 27,   6, 802,   3],
       [462,  67, 144, 165]])
seqlogo.seqlogo(seqlogo.CompletePm(test2), size='large')

aboyle avatar Jan 23 '24 15:01 aboyle