@@ -213,18 +213,23 @@ void SNPinGenome::perform(std::string const& mateFile, const std::string& inputF
213213 if (!pileup_read) {
214214 assignValues (mateFile, inputFormat, minimalTotalLetterCountPerPosition,minimalQualityPerPosition);
215215 }
216- cout << " ..Adding BAF info to the " << what << " dataset" << std::endl;
217- genomeCopyNumber.addBAFinfo (*this );
218- cout << " ..Recalculate breakpoints using BAF profiles" << std::endl;
219- genomeCopyNumber.calculateBAFBreakpoints (breakPointThreshold,breakPointType);
220- cout << " ..Recalculate median values" << std::endl;
221- genomeCopyNumber.calculateCopyNumberMedians (minCNAlength, noisyData, CompleteGenomicsData);
222-
223- cout << " ..Reannotate copy numbers" << std::endl;
224- if (genomeCopyNumber.getWESanalysis () == false )
225- {genomeCopyNumber.calculateCopyNumberProbs_and_genomeLength (breakPointType);}
226- else
227- {genomeCopyNumber.calculateCopyNumberProbs_and_exomeLength (breakPointType);}
216+
217+ if (genomeCopyNumber.ifHasRatio ()) {
218+ cout << " ..Adding BAF info to the " << what << " dataset" << std::endl;
219+ genomeCopyNumber.addBAFinfo (*this );
220+ cout << " ..Recalculate breakpoints using BAF profiles" << std::endl;
221+ genomeCopyNumber.calculateBAFBreakpoints (breakPointThreshold,breakPointType);
222+ cout << " ..Recalculate median values" << std::endl;
223+ genomeCopyNumber.calculateCopyNumberMedians (minCNAlength, noisyData, CompleteGenomicsData);
224+
225+ cout << " ..Reannotate copy numbers" << std::endl;
226+ if (genomeCopyNumber.getWESanalysis () == false )
227+ {genomeCopyNumber.calculateCopyNumberProbs_and_genomeLength (breakPointType);}
228+ else
229+ {genomeCopyNumber.calculateCopyNumberProbs_and_exomeLength (breakPointType);}
230+
231+ }
232+
228233 cout << " ..Done" << std::endl;
229234}
230235
0 commit comments