-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFASTASequence.hpp
71 lines (47 loc) · 1.57 KB
/
FASTASequence.hpp
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
66
67
68
69
70
71
#ifndef _BLASR_FASTA_SEQUENCE_HPP_
#define _BLASR_FASTA_SEQUENCE_HPP_
#include <string>
#include <iostream>
#include <stdint.h>
#include <string>
#include <cstring>
#include <ostream>
#include "Types.h"
#include "NucConversion.hpp"
#include "Enumerations.h"
#include "PlatformId.h"
#include "DNASequence.hpp"
#include "datastructures/reads/ZMWGroupEntry.hpp"
//
// NO proteins for now.
class FASTASequence : public DNASequence {
public:
char *title;
int titleLength;
FASTASequence();
void PrintSeq(std::ostream &out, int lineLength = 50, char delim='>');
int GetStorageSize();
std::string GetName();
bool StoreHoleNumber(int holeNumber);
bool StoreHoleStatus(unsigned char holeStatus);
bool StorePlatformType(PlatformType platform);
bool StorePlatformType(PlatformId platformId);
bool StoreZMWData(ZMWGroupEntry &data);
bool GetHoleNumber (int &holeNumberP);
bool StoreXY(int16_t xy[]);
bool GetXY(int xyP[]);
void ShallowCopy(const FASTASequence &rhs);
std::string GetTitle() const;
void CopyTitle(const char* str, int strlen);
void CopyTitle(std::string str);
void GetFASTATitle(std::string& fastaTitle);
void CopySubsequence(FASTASequence &rhs, int readStart, int readEnd=-1);
void AppendToTitle(std::string str);
void Assign(FASTASequence &rhs);
void MakeRC(FASTASequence &rhs, DNALength rhsPos=0, DNALength rhsLength=0);
void ReverseComplementSelf();
void operator=(const FASTASequence &rhs);
void Copy(const FASTASequence &rhs);
void Free();
};
#endif