Skip to content

Commit

Permalink
Merge pull request #6 from jfostier/libraryRefactor
Browse files Browse the repository at this point in the history
Library refactor. Merging as remaining performance issues are likely related to stage 5.
  • Loading branch information
jfostier committed Feb 16, 2016
2 parents 64516f5 + c3fc182 commit bb6aa11
Show file tree
Hide file tree
Showing 6 changed files with 409 additions and 219 deletions.
2 changes: 1 addition & 1 deletion src/brownie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void Brownie::printInFile()
void Brownie::parameterEstimationInStage4(DBGraph &graph){
cout <<endl<< " ================ Parameter Estimation ===============" << endl;
double estimatedKmerCoverage=0,estimatedMKmerCoverageSTD=0, cutOffvalue=0, readLength=0;
readLength=libraries.getReadLength();
readLength=libraries.getAvgReadLength();
if (readLength<=settings.getK() ||readLength>500)
readLength=150;

Expand Down
2 changes: 2 additions & 0 deletions src/bubble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "settings.h"
#include "library.h"

#include <queue>

using namespace std;
class PathInfo {
public:
Expand Down
4 changes: 2 additions & 2 deletions src/coverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ double DBGraph::getInitialEstimateForCoverage ( const ReadLibrary& input,
DBGraph::graph = this;
sort ( sortedNodes.begin(), sortedNodes.end(), sortByLength );

size_t RL = input.getReadLength();
size_t RL = input.getAvgReadLength();
size_t k = Kmer::getK();

// for the biggest nodes compute the coverage
Expand All @@ -680,7 +680,7 @@ double DBGraph::estimateReadStartCoverage ( const ReadLibrary &input,
{
size_t nom = 0, denom = 0;
size_t k = Kmer::getK();
size_t RL = input.getReadLength();
size_t RL = input.getAvgReadLength();

for ( NodeID id = 1; id <= numNodes; id++ ) {
DSNode& node = getDSNode ( id );
Expand Down
4 changes: 4 additions & 0 deletions src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ typedef uint32_t KmerLSB; // set to uint16_t and all hell will break loose

#define SCAFFOLD_SNAP_LINK 5

// The number of recordBlocks simulataneously held in memory. Higher values
// result in more parallel chunks at the cost of increased memory use.
#define NUM_RECORD_BLOCKS 2

// ============================================================================
// TYPEDEFS
// ============================================================================
Expand Down
Loading

0 comments on commit bb6aa11

Please sign in to comment.