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

Method printCNVs

src/GenomeCopyNumber.cpp:2921–2935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2919}
2920
2921void GenomeCopyNumber::printCNVs (std::string const& outFile) {
2922 std::ofstream file (outFile.c_str());
2923 for (int i = 0; i < (int)CNVs_.size(); i++) {
2924 if (CNVs_[i].getCopyNumber()>-1) {
2925 if (sex_.compare("XY")==0 && (CNVs_[i].getChr().find("X")!=string::npos || CNVs_[i].getChr().find("Y")!=string::npos)) {
2926 file << CNVs_[i].printEntryCNV(ploidy_*0.5);
2927 } else {
2928 file << CNVs_[i].printEntryCNV(ploidy_);
2929 }
2930
2931 file << "\n";
2932 }
2933 }
2934 file.close();
2935}
2936
2937vector <EntryCNV> GenomeCopyNumber::getCNVs () {
2938 return CNVs_;

Callers 1

mainFunction · 0.80

Calls 4

getCopyNumberMethod · 0.80
compareMethod · 0.80
getChrMethod · 0.80
printEntryCNVMethod · 0.80

Tested by

no test coverage detected