-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCTranscript.cpp
More file actions
64 lines (56 loc) · 1.44 KB
/
CTranscript.cpp
File metadata and controls
64 lines (56 loc) · 1.44 KB
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: CTranscript.cpp
* Author: mwittig
*
* Created on August 7, 2019, 3:01 PM
*/
#include <cstdlib>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <libgen.h>
#include <iostream>
#include <cstring>
#include <vector>
#include <htslib/sam.h>
#include "meinetools.h"
#include "CBigWigReader.h"
#include "CTranscript.h"
using namespace std;
CTranscript::CTranscript(const std::string& chrom, const std::string& strand, const std::string& txStart, const std::string& txEnd, const std::string& exonStarts, const std::string& exonEnds)
{
m_txStart = txStart;
m_txEnd = txEnd;
m_chrom = chrom;
m_strand = strand;
vector<string> parsed = CMyTools::GetParsedLine(exonStarts,",");
for(auto x:parsed)
{
if(x.length() != 0)
m_exonStarts.push_back(stoi(x));
}
parsed = CMyTools::GetParsedLine(exonEnds,",");
for(auto x:parsed)
{
if(x.length() != 0)
m_exonEnds.push_back(stoi(x));
}
}
CTranscript::CTranscript(const CTranscript& orig)
{
m_txStart = orig.m_txStart;
m_txEnd = orig.m_txEnd;
m_chrom = orig.m_chrom;
m_strand = orig.m_strand;
m_exonStarts = orig.m_exonStarts;
m_exonEnds = orig.m_exonEnds;
}
CTranscript::~CTranscript()
{
}