// =============== // = Constructor = // =============== BedMerge::BedMerge(string &bedFile, bool &numEntries, int &maxDistance, bool &forceStrand, bool &reportNames) { _bedFile = bedFile; _numEntries = numEntries; _maxDistance = -1 * maxDistance; _forceStrand = forceStrand; _reportNames = reportNames; _bed = new BedFile(bedFile); if (_forceStrand == false) MergeBed(); else MergeBedStranded(); }
// =============== // = Constructor = // =============== BedMerge::BedMerge(string &bedFile, bool numEntries, int maxDistance, bool forceStrand, bool reportNames, bool reportScores, const string &scoreOp) : _bedFile(bedFile), _numEntries(numEntries), _forceStrand(forceStrand), _reportNames(reportNames), _reportScores(reportScores), _scoreOp(scoreOp), _maxDistance(maxDistance) { _bed = new BedFile(bedFile); if (_forceStrand == false) MergeBed(); else MergeBedStranded(); }