Skip to content

Commit

Permalink
use bias-corrected lengths in bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-p committed Sep 1, 2016
1 parent af9b803 commit 427af3e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/CollapsedEMOptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ bool CollapsedEMOptimizer::gatherBootstraps(

bool scaleCounts = (!sopt.useQuasi and !sopt.allowOrphans);

auto& fragStartDists = readExp.fragmentStartPositionDistributions();
uint64_t numMappedFrags =
scaleCounts ? readExp.upperBoundHits() : readExp.numMappedFragments();

Expand Down Expand Up @@ -592,7 +591,6 @@ bool CollapsedEMOptimizer::gatherBootstraps(
priorAlphas[i] = priorValue * transcripts[i].RefLength;
}
}
//double priorAlpha = 1e-3;//1.00;

auto jointLog = sopt.jointLog;

Expand All @@ -614,7 +612,7 @@ bool CollapsedEMOptimizer::gatherBootstraps(
alphas[i] = transcripts[i].getActive() ? scale * totalNumFrags : 0.0;
effLens(i) = (sopt.noEffectiveLengthCorrection)
? transcripts[i].RefLength
: std::exp(transcripts[i].getCachedLogEffectiveLength());
: transcripts[i].EffectiveLength;
totalLen += effLens(i);
}

Expand Down

0 comments on commit 427af3e

Please sign in to comment.