Bugfix: dotplot left border misplaced (for some versions of python/PIL).
authorMartin C. Frith
Tue Feb 28 16:35:02 2017 +0900 (2017-02-28)
changeset 8341514199bb31b
parent 833 ec636cb2fe64
child 835 cdb1e40c28e4
Bugfix: dotplot left border misplaced (for some versions of python/PIL).
doc/last-papers.txt
scripts/last-dotplot
     1.1 --- a/doc/last-papers.txt	Fri Feb 03 19:21:38 2017 +0900
     1.2 +++ b/doc/last-papers.txt	Tue Feb 28 16:35:02 2017 +0900
     1.3 @@ -100,6 +100,14 @@
     1.4      Describes the split alignment algorithm, and its application to
     1.5      whole genome alignment.
     1.6  
     1.7 +12. `Training alignment parameters for arbitrary sequencers with
     1.8 +    LAST-TRAIN`__.  Hamada M, Ono Y, Asai K Frith MC.
     1.9 +    Bioinformatics.
    1.10 +
    1.11 +    __ https://academic.oup.com/bioinformatics/article-lookup/doi/10.1093/bioinformatics/btw742
    1.12 +
    1.13 +    Describes last-train.
    1.14 +
    1.15  External methods
    1.16  ----------------
    1.17  
     2.1 --- a/scripts/last-dotplot	Fri Feb 03 19:21:38 2017 +0900
     2.2 +++ b/scripts/last-dotplot	Tue Feb 28 16:35:02 2017 +0900
     2.3 @@ -350,7 +350,7 @@
     2.4                                 font, image_mode, opts)
     2.5          axis2 = get_axis_image(seq_names2, name_sizes2, seq_starts2, seq_pix2,
     2.6                                 font, image_mode, opts)
     2.7 -        axis2 = axis2.rotate(270, expand=1)
     2.8 +        axis2 = axis2.transpose(Image.ROTATE_270)  # !!! bug hotspot
     2.9          im.paste(axis1, (0, 0))
    2.10          im.paste(axis2, (0, 0))
    2.11