Skip to content

Commit

Permalink
Added mt condition to not include unmapped in intergenic condition
Browse files Browse the repository at this point in the history
  • Loading branch information
aawdeh committed Jan 16, 2024
1 parent fd1aa1a commit 83c80b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/TagSort/src/metricgatherer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,14 @@ void CellMetricGatherer::ingestLine(std::string const& str)
perfect_cell_barcodes_ += fields.cell_barcode_perfect;

// need to change this
//if (!(mitochondrial_genes_.find(std::string(fields.tag_triple.third)) != mitochondrial_genes_.end())) {
if (fields.alignment_location == 7) {
if (fields.number_mappings == 1)
if (fields.alignment_location == 7) {
if (fields.number_mappings == 1)
if (!(mitochondrial_genes_.find(std::string(fields.tag_triple.third)) != mitochondrial_genes_.end()))
reads_mapped_intergenic_ += 1;
}
else if(fields.alignment_location == 0) {
reads_unmapped_ += 1;
}
//}

genes_histogram_[std::string(fields.tag_triple.third)] += 1;
// END cell-metric-specific stuff
Expand Down

0 comments on commit 83c80b4

Please sign in to comment.