001    package org.biojava3.core.sequence.compound;
002    
003    /**
004     *
005     * @author Andy Yates
006     */
007    public class AmbiguityRNACompoundSet extends RNACompoundSet {
008    
009      private static class InitaliseOnDemand {
010        public static final AmbiguityRNACompoundSet INSTANCE = new AmbiguityRNACompoundSet();
011      }
012    
013      public static AmbiguityRNACompoundSet getDNACompoundSet() {
014        return InitaliseOnDemand.INSTANCE;
015      }
016    
017      public AmbiguityRNACompoundSet() {
018    
019        addNucleotideCompound("A", "U");
020        addNucleotideCompound("U", "A");
021        addNucleotideCompound("G", "C");
022        addNucleotideCompound("C", "G");
023    
024        addNucleotideCompound("M", "K",
025            "A", "C");
026        addNucleotideCompound("R", "Y",
027            "A", "G");
028        addNucleotideCompound("W", "W",
029            "A", "U");
030        addNucleotideCompound("S", "S",
031            "C", "G");
032        addNucleotideCompound("Y", "R",
033            "C", "U");
034        addNucleotideCompound("K", "M",
035            "G", "U");
036        addNucleotideCompound("V", "B",
037            "A", "C", "G");
038        addNucleotideCompound("H", "D",
039            "A", "C", "U");
040        addNucleotideCompound("D", "H",
041            "A", "G", "U");
042        addNucleotideCompound("B", "V",
043            "C", "G", "U");
044        addNucleotideCompound("N", "N",
045            "A", "C", "G", "U", "M", "R", "W", "S", "Y", "K", "V", "H", "D", "B");
046    
047        calculateIndirectAmbiguities();
048      }
049    
050    }