1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
//
// contigsreport.hpp
// Mothur
//
// Created by Sarah Westcott on 7/17/20.
// Copyright © 2020 Schloss Lab. All rights reserved.
//
#ifndef contigsreport_hpp
#define contigsreport_hpp
#include "report.hpp"
/*
This class stores information for one line in the contigs report file
*/
/******************************************************************************************************************/
class ContigsReport : public Report {
public:
ContigsReport();
~ContigsReport() = default;
//io functions, note - printHeaders / readHeaders / getHeaders in Report parent class
void read(ifstream&); //read line in report file
void print(ofstream&); //print line in report file
string getSeqReport(); //return string containing line from report file
//set values
void setName(string n) { name = n; }
void setLength(int n) { length = n; }
void setOverlapLength(int n) { overlapLength = n; }
void setOverlapStart(int n) { overlapStart = n; }
void setOverlapEnd(int n) { overlapEnd = n; }
void setMisMatches(int n) { misMatches = n; }
void setNumNs(int n) { numsNs = n; }
void setExpectedErrors(float i) { expectedErrors = i; }
//get values
string getName() { return name; }
int getLength() { return length; }
int getOverlapLength() { return overlapLength; }
int getOverlapStart() { return overlapStart; }
int getOverlapEnd() { return overlapEnd; }
int getMisMatches() { return misMatches; }
int getNumNs() { return numsNs; }
float getExpectedErrors() { return expectedErrors; }
private:
void fillHeaders();
string name;
int length, overlapLength, overlapStart, overlapEnd, misMatches, numsNs;
float expectedErrors;
};
/******************************************************************************************************************/
#endif /* contigsreport_hpp */
|