MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / printEntryCNV

Method printEntryCNV

src/EntryCNV.cpp:56–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::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
78std::string EntryCNV::getChr(){
79 return chr_;

Callers 1

printCNVsMethod · 0.80

Calls 1

compareMethod · 0.80

Tested by

no test coverage detected