@@ -124,7 +124,7 @@ private ArrayList<CPeptideIon> calculateTerminisAttaching(int fragmentIonType) {
124124 }
125125 String cPepIonTypeName = rootName + "_" + index_for_user ;
126126 Ion ion = tmp_ions .get (ion_index );
127- CPeptideIon cIon = new CPeptideIon (intensity , ion .getTheoreticMass (), cPeptideIonType , fragmentIonType , cPepIonTypeName );
127+ CPeptideIon cIon = new CPeptideIon (intensity , ion .getTheoreticMass (), cPeptideIonType , fragmentIonType , cPepIonTypeName , '+' );
128128 terminiCPepIons .add (cIon );
129129 }
130130 return terminiCPepIons ;
@@ -195,7 +195,7 @@ private ArrayList<CPeptideIon> calculateNTerminiCPeptideIons(int fragmentIonType
195195 char node = linkedPeptide .getSequence ().charAt (linker_position_on_linkedPeptide );
196196 double startMass = AminoAcid .getAminoAcid (node ).getMonoisotopicMass ();
197197 String nodeName = rootName + "_" + linker_position_on_linkedPeptide ;
198- CPeptideIon cPepIonNode = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , nodeName );
198+ CPeptideIon cPepIonNode = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , nodeName , '+' );
199199 nTerminiCPepIons_Branching .add (cPepIonNode );
200200 // Since it is N-termini, we shall not go till the end...
201201 for (int i = startInd + 1 ; i < pepLen - 1 ; i ++) {
@@ -207,7 +207,7 @@ private ArrayList<CPeptideIon> calculateNTerminiCPeptideIons(int fragmentIonType
207207 }
208208 int naming_index = i + 1 ;
209209 String name = rootName + "_" + naming_index ;
210- CPeptideIon cPepIon = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , name );
210+ CPeptideIon cPepIon = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , name , '+' );
211211 nTerminiCPepIons_Branching .add (cPepIon );
212212 }
213213 startMass = AminoAcid .getAminoAcid (node ).getMonoisotopicMass ();
@@ -221,7 +221,7 @@ private ArrayList<CPeptideIon> calculateNTerminiCPeptideIons(int fragmentIonType
221221 }
222222 int naming_index = i + 1 ;
223223 String name = rootName + "_" + naming_index ;
224- CPeptideIon cPepIon = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , name );
224+ CPeptideIon cPepIon = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , name , '+' );
225225 nTerminiCPepIons_Branching .add (cPepIon );
226226 }
227227
@@ -260,7 +260,7 @@ private ArrayList<CPeptideIon> calculateCTerminiCPeptideIons(int fragmentIonType
260260 double startMass = AminoAcid .getAminoAcid (node ).getMonoisotopicMass ();
261261 int index_for_naming = linker_position_on_linkedPeptide + 1 ;
262262 String nodeName = rootName + "_" + index_for_naming ;
263- CPeptideIon cPepIonNode = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , nodeName );
263+ CPeptideIon cPepIonNode = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , nodeName , '+' );
264264 cTerminiCPepIons_Branching .add (cPepIonNode );
265265 // Since it is N-termini, we shall not go till the end...ONLY HERE C-TERMINI CAN BE FOUND!
266266 for (int i = startInd + 1 ; i < pepLen ; i ++) {
@@ -272,7 +272,7 @@ private ArrayList<CPeptideIon> calculateCTerminiCPeptideIons(int fragmentIonType
272272 }
273273 int naming_index = pepLen - i ;
274274 String name = rootName + "_" + naming_index ;
275- CPeptideIon cPepIon = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , name );
275+ CPeptideIon cPepIon = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , name , '+' );
276276 cTerminiCPepIons_Branching .add (cPepIon );
277277 }
278278 startMass = AminoAcid .getAminoAcid (node ).getMonoisotopicMass ();
@@ -283,7 +283,7 @@ private ArrayList<CPeptideIon> calculateCTerminiCPeptideIons(int fragmentIonType
283283 startMass += leftRes ;
284284 int naming_index = pepLen - i ;
285285 String name = rootName + "_" + naming_index ;
286- CPeptideIon cPepIon = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , name );
286+ CPeptideIon cPepIon = new CPeptideIon (intensity , startMass , cPeptideIonType , fragmentIonType , name , '+' );
287287 cTerminiCPepIons_Branching .add (cPepIon );
288288 }
289289 return cTerminiCPepIons_Branching ;
0 commit comments