Skip to content

Commit

Permalink
Add default constructor to Transcript.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed Jan 2, 2016
1 parent 602306d commit d46c688
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 28 deletions.
28 changes: 0 additions & 28 deletions external/.gitignore

This file was deleted.

9 changes: 9 additions & 0 deletions include/Transcript.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

class Transcript {
public:
Transcript() : RefName(""), RefLength(0), EffectiveLength(-1.0), id(std::numeric_limits<uint32_t>::max()),
SAMSequence(nullptr), Sequence(nullptr),
logPerBasePrior_(salmon::math::LOG_0),
priorMass_(salmon::math::LOG_0),
mass_(salmon::math::LOG_0), sharedCount_(0.0),
avgMassBias_(salmon::math::LOG_0),
active_(false),
freeSeqOnDestruct(false){}

Transcript(size_t idIn, const char* name, uint32_t len, double alpha = 0.05) :
RefName(name), RefLength(len), EffectiveLength(-1.0), id(idIn), SAMSequence(nullptr), Sequence(nullptr),
logPerBasePrior_(std::log(alpha)),
Expand Down

0 comments on commit d46c688

Please sign in to comment.