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

Function getNormalBAFforPloidy

src/myFunc.cpp:2447–2462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2445}
2446
2447std::string getNormalBAFforPloidy(int ploidy) {
2448 if (ploidy>1) {
2449 int Bcount = ploidy/2;
2450 int Acount = ploidy-Bcount;
2451 string BAF = "A";
2452 for (int i = 1; i<Acount;i++)
2453 BAF += "A";
2454 for (int i = 0; i< Bcount;i++)
2455 BAF += "B";
2456 return BAF;
2457 } else {
2458 if (ploidy==1)
2459 return "A";
2460 }
2461 return "";
2462}
2463
2464std::string getXYBAFforPloidy(int ploidy) {
2465 if (ploidy>1) {

Calls

no outgoing calls

Tested by

no test coverage detected