Skip to content

Commit

Permalink
Merge pull request #53 from smithlabcode/bam_t
Browse files Browse the repository at this point in the history
Bam t
  • Loading branch information
guilhermesena1 committed Aug 18, 2023
2 parents 312c676 + dbfb526 commit 20b2a85
Show file tree
Hide file tree
Showing 7 changed files with 1,311 additions and 37 deletions.
Binary file added example.bam
Binary file not shown.
1,002 changes: 1,002 additions & 0 deletions example.sam

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/FastqStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,16 @@ FastqStats::summarize() {
}
}


void
FastqStats::adjust_tile_maps_len() {
for (auto it = begin(tile_position_quality);
it != end(tile_position_quality); it++) {
it->second.resize(max_read_length); // Always increase space
}
for (auto it = begin(tile_position_count);
it != end(tile_position_count); it++) {
it->second.resize(max_read_length); // Always increase space
}
}

2 changes: 2 additions & 0 deletions src/FastqStats.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ struct FastqStats {

void summarize();

void adjust_tile_maps_len();

// Given an input fastqc_data.txt file, populate the statistics with it
void read(std::istream &is);
};
Expand Down

0 comments on commit 20b2a85

Please sign in to comment.