@@ -67,84 +67,6 @@ public class RNAToAminoAcidTranslator extends
6767 // first residue in the resulting ProteinSequence
6868 private final boolean waitForStartCodon ;
6969
70- /**
71- * @deprecated Retained for backwards compatability, setting
72- * {@link #stopAtStopCodons} to <code>false</code>
73- */
74- @ Deprecated
75- public RNAToAminoAcidTranslator (
76- SequenceCreatorInterface <AminoAcidCompound > creator ,
77- CompoundSet <NucleotideCompound > nucleotides ,
78- CompoundSet <Codon > codons ,
79- CompoundSet <AminoAcidCompound > aminoAcids , Table table ,
80- boolean trimStops , boolean initMetOnly , boolean translateNCodons ) {
81-
82- super (creator , nucleotides , aminoAcids );
83- this .trimStops = trimStops ;
84- this .initMetOnly = initMetOnly ;
85- this .translateNCodons = translateNCodons ;
86-
87- quickLookup = new HashMap <Table .CaseInsensitiveTriplet , Codon >(codons
88- .getAllCompounds ().size ());
89- aminoAcidToCodon = new HashMap <AminoAcidCompound , List <Codon >>();
90-
91- List <Codon > codonList = table .getCodons (nucleotides , aminoAcids );
92- for (Codon codon : codonList ) {
93- quickLookup .put (codon .getTriplet (), codon );
94- codonArray [codon .getTriplet ().intValue ()] = codon ;
95-
96- List <Codon > codonL = aminoAcidToCodon .get (codon .getAminoAcid ());
97- if (codonL == null ) {
98- codonL = new ArrayList <Codon >();
99- aminoAcidToCodon .put (codon .getAminoAcid (), codonL );
100- }
101- codonL .add (codon );
102-
103- }
104- unknownAminoAcidCompound = aminoAcids .getCompoundForString ("X" );
105- methionineAminoAcidCompound = aminoAcids .getCompoundForString ("M" );
106- // Set to false for backwards compatability
107- stopAtStopCodons = false ;
108- waitForStartCodon = false ;
109- }
110-
111- @ Deprecated
112- public RNAToAminoAcidTranslator (
113- SequenceCreatorInterface <AminoAcidCompound > creator ,
114- CompoundSet <NucleotideCompound > nucleotides ,
115- CompoundSet <Codon > codons ,
116- CompoundSet <AminoAcidCompound > aminoAcids , Table table ,
117- boolean trimStops , boolean initMetOnly , boolean translateNCodons ,
118- boolean stopAtStopCodons ) {
119-
120- super (creator , nucleotides , aminoAcids );
121- this .trimStops = trimStops ;
122- this .initMetOnly = initMetOnly ;
123- this .translateNCodons = translateNCodons ;
124-
125- quickLookup = new HashMap <Table .CaseInsensitiveTriplet , Codon >(codons
126- .getAllCompounds ().size ());
127- aminoAcidToCodon = new HashMap <AminoAcidCompound , List <Codon >>();
128-
129- List <Codon > codonList = table .getCodons (nucleotides , aminoAcids );
130- for (Codon codon : codonList ) {
131- quickLookup .put (codon .getTriplet (), codon );
132- codonArray [codon .getTriplet ().intValue ()] = codon ;
133-
134- List <Codon > codonL = aminoAcidToCodon .get (codon .getAminoAcid ());
135- if (codonL == null ) {
136- codonL = new ArrayList <Codon >();
137- aminoAcidToCodon .put (codon .getAminoAcid (), codonL );
138- }
139- codonL .add (codon );
140-
141- }
142- unknownAminoAcidCompound = aminoAcids .getCompoundForString ("X" );
143- methionineAminoAcidCompound = aminoAcids .getCompoundForString ("M" );
144- this .stopAtStopCodons = stopAtStopCodons ;
145- // Set for backwards compatibility
146- waitForStartCodon = false ;
147- }
14870
14971 public RNAToAminoAcidTranslator (
15072 SequenceCreatorInterface <AminoAcidCompound > creator ,
0 commit comments