Browse code

rename peptide_ref to peptideRef

Michael Nestor authored on 09/09/2020 15:32:19
Showing1 changed files

... ...
@@ -101,7 +101,7 @@ Rcpp::DataFrame RcppIdent::getPsmInfo(  )
101 101
     std::vector<double> experimentalMassToCharge;
102 102
     std::vector<double> calculatedMassToCharge;
103 103
     std::vector<std::string> seq;
104
-    std::vector<std::string> peptide_ref;
104
+    std::vector<std::string> peptideRef;
105 105
     std::vector<int> modification;
106 106
     std::vector<bool> isDecoy;
107 107
     std::vector<bool> passThreshold;
... ...
@@ -128,7 +128,7 @@ Rcpp::DataFrame RcppIdent::getPsmInfo(  )
128 128
 		experimentalMassToCharge.push_back(spectrumIdResult[i]->spectrumIdentificationItem[j]->experimentalMassToCharge);
129 129
 		calculatedMassToCharge.push_back(spectrumIdResult[i]->spectrumIdentificationItem[j]->calculatedMassToCharge);
130 130
 		seq.push_back(spectrumIdResult[i]->spectrumIdentificationItem[j]->peptidePtr->peptideSequence);
131
-		peptide_ref.push_back(spectrumIdResult[i]->spectrumIdentificationItem[j]->peptidePtr->id);
131
+		peptideRef.push_back(spectrumIdResult[i]->spectrumIdentificationItem[j]->peptidePtr->id);
132 132
 		modification.push_back(spectrumIdResult[i]->spectrumIdentificationItem[j]->peptidePtr->modification.size());
133 133
 		isDecoy.push_back(spectrumIdResult[i]->spectrumIdentificationItem[j]->peptideEvidencePtr[k]->isDecoy);
134 134
 		pre.push_back(string(1, spectrumIdResult[i]->spectrumIdentificationItem[j]->peptideEvidencePtr[k]->pre));
... ...
@@ -170,7 +170,7 @@ Rcpp::DataFrame RcppIdent::getPsmInfo(  )
170 170
 	       Rcpp::_["experimentalMassToCharge"]	= experimentalMassToCharge,
171 171
 	       Rcpp::_["calculatedMassToCharge"]	= calculatedMassToCharge,
172 172
 	       Rcpp::_["sequence"]	= seq,
173
-	       Rcpp::_["peptide_ref"]	= peptide_ref,
173
+	       Rcpp::_["peptideRef"]	= peptideRef,
174 174
 	       Rcpp::_["modNum"]	= modification,
175 175
 	       Rcpp::_["isDecoy"]	= isDecoy,
176 176
 	       Rcpp::_["post"]	= post,
... ...
@@ -190,7 +190,7 @@ Rcpp::DataFrame RcppIdent::getModInfo(  )
190 190
     vector<SpectrumIdentificationResultPtr> spectrumIdResult = mzid->analysisCollection.spectrumIdentification[0]->spectrumIdentificationListPtr->spectrumIdentificationResult;
191 191
     vector<string> spectrumID;
192 192
     vector<string> seq;
193
-    vector<string> peptide_ref;
193
+    vector<string> peptideRef;
194 194
     vector<string> name;
195 195
     vector<double> mass;
196 196
     vector<int> loc;
... ...
@@ -205,7 +205,7 @@ Rcpp::DataFrame RcppIdent::getModInfo(  )
205 205
 		{
206 206
 		    spectrumID.push_back(spectrumIdResult[i]->spectrumID);
207 207
 		    seq.push_back(spectrumIdResult[i]->spectrumIdentificationItem[k]->peptidePtr->peptideSequence);
208
-		    peptide_ref.push_back(spectrumIdResult[i]->spectrumIdentificationItem[k]->peptidePtr->id);
208
+		    peptideRef.push_back(spectrumIdResult[i]->spectrumIdentificationItem[k]->peptidePtr->id);
209 209
 		    name.push_back(cvTermInfo(spectrumIdResult[i]->spectrumIdentificationItem[k]->peptidePtr->modification[j]->cvParams[0].cvid).name);
210 210
 		    mass.push_back(spectrumIdResult[i]->spectrumIdentificationItem[k]->peptidePtr->modification[j]->monoisotopicMassDelta);
211 211
 		    loc.push_back(spectrumIdResult[i]->spectrumIdentificationItem[k]->peptidePtr->modification[j]->location);
... ...
@@ -217,7 +217,7 @@ Rcpp::DataFrame RcppIdent::getModInfo(  )
217 217
     return Rcpp::DataFrame::create(
218 218
 	       Rcpp::_["spectrumID"]	= spectrumID,
219 219
 	       Rcpp::_["sequence"]	= seq,
220
-	       Rcpp::_["peptide_ref"]	= peptide_ref,
220
+	       Rcpp::_["peptideRef"]	= peptideRef,
221 221
 	       Rcpp::_["name"]	= name,
222 222
 	       Rcpp::_["mass"]	= mass,
223 223
 	       Rcpp::_["location"]	= loc);