Skip to content

Commit

Permalink
quick update
Browse files Browse the repository at this point in the history
  • Loading branch information
y9c committed Jun 26, 2022
1 parent 41cd454 commit c38da54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cpup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ class mpileup_line {
// show depth
if (count_names.size() == 0 || std::find(count_names.begin(), count_names.end(), "depth") != count_names.end()) {
out << sample_sep << M["coverage"];
} else {
out << sample_sep;
}

if (count_names.size() > 0) {
Expand Down Expand Up @@ -228,6 +230,8 @@ class mpileup_line {
// show depth
if (count_names.size() == 0 || std::find(count_names.begin(), count_names.end(), "depth") != count_names.end()) {
out << sample_sep << m["coverage"];
} else {
out << sample_sep;
}
if (count_names.size() > 0) {
for (int j = 0; j < count_names.size(); j++) {
Expand Down Expand Up @@ -265,6 +269,8 @@ class mpileup_line {
// show depth
if (count_names.size() == 0 || std::find(count_names.begin(), count_names.end(), "depth") != count_names.end()) {
out << sample_sep << depths[i];
} else {
out << sample_sep;
}
if (count_names.size() > 0) {
for (int j = 0; j < count_names.size(); j++) {
Expand Down Expand Up @@ -348,6 +354,8 @@ class mpileup_line {
// show depth
if (count_names.size() == 0 || std::find(count_names.begin(), count_names.end(), "depth") != count_names.end()) {
out << sample_sep << depths[i];
} else {
out << sample_sep;
}

map<string, int> M = Counts[i];
Expand Down

0 comments on commit c38da54

Please sign in to comment.