- public:
- PairedEndRead() : mate1(), mate2() {}
- PairedEndRead(const SingleRead& mate1, const SingleRead& mate2) {
- this->mate1 = mate1;
- this->mate2 = mate2;
- this->name = mate1.getName();
-
- calc_lq();
- }
-
- bool read(int argc, std::istream* argv[], int flags = 7);
- void write(int argc, std::ostream* argv[]);
-
- const SingleRead& getMate1() const { return mate1; }
- const SingleRead& getMate2() const { return mate2; }
- const SingleRead& getMate(int i) const {
- if (i == 1) return mate1;
- else return mate2;
- }
-
- private:
- SingleRead mate1, mate2;
-
- void calc_lq();
+public:
+ PairedEndRead() : mate1(), mate2() {}
+ PairedEndRead(const SingleRead& mate1, const SingleRead& mate2) {
+ this->mate1 = mate1;
+ this->mate2 = mate2;
+ this->name = mate1.getName();
+ }
+
+ bool read(int argc, std::istream* argv[], int flags = 7);
+ void write(int argc, std::ostream* argv[]);
+
+ const SingleRead& getMate1() const { return mate1; }
+ const SingleRead& getMate2() const { return mate2; }
+ const SingleRead& getMate(int i) const {
+ if (i == 1) return mate1;
+ else return mate2;
+ }
+
+ void calc_lq(bool, int); // calculate if this read is low quality. Without calling this function, isLowQuality() will always be false
+
+private:
+ SingleRead mate1, mate2;