RNA DnaConfig::add_DNA_CrossTalk(DNA& dnaTotal) { DNA dnaCrossTalk; RNA rnaCrossTalk; //Cross Talk if (m_chkCrossTalk) { dnaCrossTalk.AddCell(CrsTlk , Pn4, m_CTFE); dnaCrossTalk.AddCell(CrsTlkD, Pn4, m_CTFE); dnaCrossTalk.AddCell(CrsTlkW, Pn4, m_CTFE); } if (dnaCrossTalk.Size()) { Ts->Trans(dnaCrossTalk, rnaCrossTalk); rnaCrossTalk.SortQuackMsr(); } showRNA(rnaCrossTalk); dnaTotal += dnaCrossTalk; return rnaCrossTalk; }
void DNA::DelCell(const DNA& compData) { if (compData.Size())//裡面這些不要修改,影響再次量測的資料擺放 { std::vector<Nucleotide>::const_iterator dnaItor = 0, compItor; std::vector<Nucleotide>::iterator rmBeginItor(End()); for (compItor = compData.Begin(); compItor != compData.End(); ++compItor) rmBeginItor = std::remove(Begin(), rmBeginItor, *compItor); nChain.erase(rmBeginItor, End()); } }
RNA DnaConfig::add_DNA_Gamma(DNA& dnaTotal) { DNA dnaGamma; RNA rnaGamma; //Gamma if (m_chkWGamma || m_chkDGamma) dnaGamma.AddCell(White, PnGamma, m_WGammaBegin, m_WGamma_End, m_WGamma_Avg ); if (m_chkRGamma) dnaGamma.AddCell(Red , PnGamma, m_RGammaBegin, m_RGamma_End, m_RGamma_Avg ); if (m_chkGGamma) dnaGamma.AddCell(Green, PnGamma, m_GGammaBegin, m_GGamma_End, m_GGamma_Avg ); if (m_chkBGamma) dnaGamma.AddCell(Blue , PnGamma, m_BGammaBegin, m_BGamma_End, m_BGamma_Avg ); if (dnaGamma.Size()) { Ts->Trans(dnaGamma, rnaGamma); rnaGamma.SortOrigMsr(); } dnaTotal += dnaGamma; return rnaGamma; }
RNA DnaConfig::add_DNA_WRGBD(DNA& dnaTotal) { DNA dnaSortStable; RNA rnaSortStable; //修改的話,要同步修改 //中心點 if (m_chkWP1) dnaSortStable.AddCell(White, Pn1); if (m_chkRP1) dnaSortStable.AddCell(Red , Pn1); if (m_chkGP1) dnaSortStable.AddCell(Green, Pn1); if (m_chkBP1) dnaSortStable.AddCell(Blue , Pn1); if (m_chkDP1) dnaSortStable.AddCell(Dark , Pn1); //Nits if (m_chkNits) dnaSortStable.AddCell(Nits, Pn9, m_NitsLv, m_NitsDirect); //5點 if (m_chkWP5) dnaSortStable.AddCell(White, Pn5, m_W5FE); // if (m_chkRP5) dnaSortStable.AddCell(Red , Pn5, W5FE); // if (m_chkGP5) dnaSortStable.AddCell(Green, Pn5, W5FE); // if (m_chkBP5) dnaSortStable.AddCell(Blue , Pn5, W5FE); // if (m_chkDP5) dnaSortStable.AddCell(Dark , Pn5, W5FE); //9點 if (m_chkWP9) dnaSortStable.AddCell(White, Pn9, m_W9FE, m_W9EdgeType); // if (m_chkRP9) dnaSortStable.AddCell(Red , Pn9, W9FE, PA_FEover); // if (m_chkGP9) dnaSortStable.AddCell(Green, Pn9, W9FE, PA_FEover); // if (m_chkBP9) dnaSortStable.AddCell(Blue , Pn9, W9FE, PA_FEover); if (m_chkDP9) dnaSortStable.AddCell(Dark , Pn9, m_D9FE, m_D9EdgeType); //21點 // if (m_chkWP21) dnaSortStable.AddCell(White, Pn21, D21FE); // if (m_chkRP21) dnaSortStable.AddCell(Red , Pn21, D21FE); // if (m_chkGP21) dnaSortStable.AddCell(Green, Pn21, D21FE); // if (m_chkBP21) dnaSortStable.AddCell(Blue , Pn21, D21FE); if (m_chkDP21) dnaSortStable.AddCell(Dark , Pn21, m_D21FE); //13點 // if (m_chkWP13) dnaSortStable.AddCell(White, Pn13, D13FE); // if (m_chkRP13) dnaSortStable.AddCell(Red , Pn13, D13FE); // if (m_chkGP13) dnaSortStable.AddCell(Green, Pn13, D13FE); // if (m_chkBP13) dnaSortStable.AddCell(Blue , Pn13, D13FE); if (m_chkDP13) dnaSortStable.AddCell(Dark , Pn13, m_D13FE); //25點 // if (m_chkWP25) dnaSortStable.AddCell(White, Pn25, D25FE, D25RectSide); // if (m_chkRP25) dnaSortStable.AddCell(Red , Pn25, D25FE, D25RectSide); // if (m_chkGP25) dnaSortStable.AddCell(Green, Pn25, D25FE, D25RectSide); // if (m_chkBP25) dnaSortStable.AddCell(Blue , Pn25, D25FE, D25RectSide); if (m_chkDP25) dnaSortStable.AddCell(Dark , Pn25, m_D25FE, m_D25RectSide); //49點 if (m_chkWP49) dnaSortStable.AddCell(White, Pn49); // if (m_chkRP49) dnaSortStable.AddCell(Red , Pn49); // if (m_chkGP49) dnaSortStable.AddCell(Green, Pn49); // if (m_chkBP49) dnaSortStable.AddCell(Blue , Pn49); // if (m_chkDP49) dnaSortStable.AddCell(Dark , Pn49); if (dnaSortStable.Size()) { Ts->Trans(dnaSortStable, rnaSortStable); //排序 if (m_msrQuick) rnaSortStable.SortQuackMsr(); else rnaSortStable.SortOrigMsr(); } showRNA(rnaSortStable); dnaTotal += dnaSortStable; return rnaSortStable; }