| 54 | } |
| 55 | |
| 56 | std::string EntryCNV::printEntryCNV(float ploidy){ |
| 57 | |
| 58 | std::stringstream ss; |
| 59 | |
| 60 | ss << chr_ << "\t"<< startCoord_<< "\t"<< endCoord_<<"\t"<<copyNumber_<<"\t"; |
| 61 | if (copyNumber_>ploidy) |
| 62 | ss << "gain"; |
| 63 | else if (copyNumber_<ploidy) |
| 64 | ss << "loss"; |
| 65 | else |
| 66 | ss << "neutral"; |
| 67 | |
| 68 | if (isBAFassessed_!=0) |
| 69 | ss << "\t"<< medianBAFSymbol_<< "\t"<< estimatedBAFuncertainty_; |
| 70 | |
| 71 | if (type_ != "" && type_.compare("normal")!=0) |
| 72 | ss << "\t"<< type_<< "\t"<< germlinePercent_; |
| 73 | if (type_.compare("normal")==0) |
| 74 | ss << "\t"<< "neutral"<< "\t"<< germlinePercent_; |
| 75 | return ss.str(); |
| 76 | } |
| 77 | |
| 78 | std::string EntryCNV::getChr(){ |
| 79 | return chr_; |