forked from Oshlack/Corset
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTranscript.cc
More file actions
32 lines (27 loc) · 843 Bytes
/
Transcript.cc
File metadata and controls
32 lines (27 loc) · 843 Bytes
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
// Copyright 2013 Nadia Davidson for Murdoch Childrens Research
// Institute Australia. This program is distributed under the GNU
// General Public License. We also ask that you cite this software in
// publications where you made use of it for any part of the data
// analysis.
//
// Last modified 21 February 2026, Martin Paliocha, martin.paliocha@nmbu.no
#include <Transcript.h>
#include <Read.h>
void Transcript::remove() {
for (auto *r : reads_)
r->remove(this);
}
void Transcript::add_read(Read *read) {
reads_.push_back(read);
}
bool Transcript::reached_min_counts() const {
int counts = total_direct_counts();
if (counts >= min_counts)
return true;
for (auto *r : reads_) {
counts += r->get_weight();
if (counts >= min_counts)
return true;
}
return false;
}