X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=SingleQModel.h;fp=SingleQModel.h;h=dff9c4691153911a3d060b9d063a4856f4628b77;hb=a97cc1d4f0111f7fe523227412a2147f7a763d56;hp=0c2ba34cece15a0e2f48926d126e6cdc390392f8;hpb=1794b68d34625b39404d5aba9e72646805b710ce;p=rsem.git diff --git a/SingleQModel.h b/SingleQModel.h index 0c2ba34..dff9c46 100644 --- a/SingleQModel.h +++ b/SingleQModel.h @@ -63,7 +63,6 @@ public: mw = NULL; if (isMaster) { - ori = new Orientation(params.probF); gld = new LenDist(params.minL, params.maxL); if (mean >= EPSILON) { mld = new LenDist(params.mate_minL, params.mate_maxL); @@ -72,6 +71,7 @@ public: qd = new QualDist(); } + ori = new Orientation(params.probF); if (estRSPD) { rspd = new RSPD(estRSPD, params.B); } qpro = new QProfile(); nqpro = new NoiseQProfile(); @@ -158,7 +158,8 @@ public: void update(const SingleReadQ& read, const SingleHit& hit, double frac) { if (read.isLowQuality() || frac < EPSILON) return; - RefSeq& ref = refs->getRef(hit.getSid()); + const RefSeq& ref = refs->getRef(hit.getSid()); + int dir = hit.getDir(); int pos = hit.getPos(); @@ -465,7 +466,6 @@ void SingleQModel::calcMW() { memset(mw, 0, sizeof(double) * (M + 1)); mw[0] = 1.0; - probF = ori->getProb(0); probR = ori->getProb(1);