Skip to content

Commit

Permalink
prepare version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-p committed Sep 26, 2015
1 parent 660fb04 commit 1f277a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ enable_testing()

project (Sailfish)

set(CPACK_PACKAGE_VERSION "0.7.4")
set(CPACK_PACKAGE_VERSION "0.7.5")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "7")
set(CPACK_PACKAGE_VERSION_PATCH "4")
set(CPACK_PACKAGE_VERSION_PATCH "5")
set(CPACK_GENERATOR "TGZ")
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_PACKAGE_VENDOR "Carnegie Mellon University")
Expand Down
4 changes: 2 additions & 2 deletions include/SailfishConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
namespace sailfish {
constexpr char majorVersion[] = "0";
constexpr char minorVersion[] = "7";
constexpr char patchVersion[] = "4";
constexpr char version[] = "0.7.4";
constexpr char patchVersion[] = "5";
constexpr char version[] = "0.7.5";
constexpr uint32_t indexVersion = 1;
}

Expand Down
8 changes: 5 additions & 3 deletions src/SailfishQuantify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,13 +406,15 @@ void quasiMapReads(
* (https://github.com/adarob/eXpress/blob/master/src/targets.cpp)
* originally written by Adam Roberts.
*/
uint32_t minVal = empDist.minValue();
uint32_t maxVal = empDist.maxValue();
bool validDistSupport = (maxVal > minVal);
double refLen = txp.RefLength;
if (refLen <= empDist.median()) {
if (refLen <= empDist.median() or !validDistSupport) {
txp.EffectiveLength = refLen;
} else {
uint32_t mval = empDist.maxValue();
double effectiveLength = 0.0;
for (size_t l = empDist.minValue(); l <= std::min(txp.RefLength, mval); ++l) {
for (size_t l = minVal; l <= std::min(txp.RefLength, maxVal); ++l) {
effectiveLength += empDist.pdf(l) * (txp.RefLength - l + 1.0);
}
txp.EffectiveLength = effectiveLength;
Expand Down

0 comments on commit 1f277a0

Please sign in to comment.