From: James Procter Date: Thu, 11 Jan 2024 17:17:15 +0000 (+0000) Subject: JAL-4366 fix reconstruction of peptide alignment... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b028e684c807365decd0c6e6111aa4bf368a6fa8;p=jalview.git JAL-4366 fix reconstruction of peptide alignment... --- diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index 73ccdc5..6532a2d 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -1830,7 +1830,13 @@ public class Alignment implements AlignmentI, AutoCloseable { return AlignmentUtils.alignCdsAsProtein(this, al); } - return AlignmentUtils.alignAs(this, al); + else if (thatIsProtein && !thisIsNucleotide) + { + // honour sense we were called - align this according to al + return AlignmentUtils.alignAs(this, al); + } + // otherwise doing a DNA to DNA alignment - so use legacy obverse sense + return AlignmentUtils.alignAs(al, this); } /**