-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathReplicate.C
70 lines (44 loc) · 901 Bytes
/
Replicate.C
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
/****************************************************************
Replicate.C
Copyright (C)2017 William H. Majoros ([email protected]).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#include <iostream>
#include "Replicate.H"
using namespace std;
Replicate::Replicate()
: ref(0), alt(0)
{
// ctor
}
Replicate::Replicate(int ref,int alt)
: ref(ref), alt(alt)
{
}
int Replicate::getRef() const
{
return ref;
}
int Replicate::getAlt() const
{
return alt;
}
void Replicate::setRef(int r)
{
ref=r;
}
void Replicate::setAlt(int a)
{
alt=a;
}
void Replicate::add(const Replicate &other)
{
ref+=other.ref;
alt+=other.alt;
}
void Replicate::addPseudocount(int pseudo)
{
ref+=pseudo;
alt+=pseudo;
}