File: Read.h

package info (click to toggle)
rsem 1.3.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 37,664 kB
  • sloc: cpp: 19,230; perl: 1,326; python: 1,245; ansic: 547; makefile: 186; sh: 154
file content (23 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef READ
#define READ

/**
father class of SingleRead, SingleReadQ, PairedEndRead, PairedEndReadQ
 */

#include<iostream>
#include<string>

class Read {
	public:
		Read() { name = ""; low_quality = false; }
		bool read(int argc, std::istream* argv[], int flags = 7) { return false; }  //read from file, flags, which entries loaded 1 : readseq, 2 : quality score 4 : name
		void write(int argc, std::ostream* argv[]) {}; //write to files // do not write if does not read fully
		const std::string& getName() const { return name; }
		bool isLowQuality() const { return low_quality; } // if this read is low quality and should not be used
	protected:
		std::string name; //name of the read
		bool low_quality;
};

#endif