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
|
#ifndef H_SuperTranscriptome
#define H_SuperTranscriptome
#include "IncludeDefine.h"
#include "Parameters.h"
struct sjInfo {
uint32 start;
uint32 end;
uint32 tr;
uint32 super;
};
class SuperTranscript {//one supertranscript
public:
uint8 *seqP;//pointer to sequence
uint32 length;
vector<array<uint32,3>> sjC;//collapsed junctions
vector<uint32> sjDonor;//SJ donor coordinates, sorted
};
class SuperTranscriptome {
private:
Parameters &P;
public:
vector<uint8> seqConcat;//concatenated sequences of supertranscripts, a.k.a. Condensed Genome
vector<vector<uint8>> seq;//sequences of supertranscripts
vector<uint64> trIndex;//superTr's index this tr belongs to
vector<array<uint64,2>> trStartEnd;//tr start/end in the superTr it belongs to
vector<sjInfo> sj;//all junctions
vector<SuperTranscript> superTrs;
uint32 sjNmax, sjDonorNmax;//max number of SJs per superTr, SJ donors
uint32 N; //number of superTr
SuperTranscriptome(Parameters &P) : P(P) {};
void sjCollapse();
void load(char *G, vector<uint64> &chrStart, vector<uint64> &chrLength);
};
#endif
|