X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FRna.java;h=89c5c3076132b74e46bf6613fb7141d1ccd7eb35;hb=853624fb32058cccc544ae7d13af6ad4b0800b6c;hp=7c077088af2c9ce76661c8e13dcf09c22069f9d9;hpb=9c1dd670f293d8f33de55133397b4cd2d4baf38e;p=jalview.git diff --git a/src/jalview/analysis/Rna.java b/src/jalview/analysis/Rna.java index 7c07708..89c5c30 100644 --- a/src/jalview/analysis/Rna.java +++ b/src/jalview/analysis/Rna.java @@ -359,8 +359,8 @@ public class Rna } /** - * Answers true if the base-pair is either a canonical (A-T/U, C-G) or a - * wobble (G-T/U) pair (either way round), else false + * Answers true if the base-pair is either a Watson-Crick (A:T/U, C:G) or a + * wobble (G:T/U) pair (either way round), else false * * @param first * @param second @@ -376,7 +376,7 @@ public class Rna { second -= 32; } - + switch (first) { case 'A': @@ -416,6 +416,14 @@ public class Rna return false; } + /** + * Answers true if the base-pair is Watson-Crick - (A:T/U or C:G, either way + * round), else false + * + * @param first + * @param second + * @return + */ public static boolean isCanonicalPair(char first, char second) {