Skip to content

Commit

Permalink
If a sqRead_unset read is requested, use sqRead_defaultVersion instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Sep 5, 2020
1 parent 3c90152 commit 8da1b99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/sqRead.H
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ private:

private:
sqReadSeq *sqRead_getSeq(sqRead_which w) {

if (w == sqRead_unset) // If w is somehow set to the unset state,
w = sqRead_defaultVersion; // go back to using the global default.

bool isRaw = ((w & sqRead_raw) == sqRead_raw); // Return the sqReadSeq object
bool isCor = ((w & sqRead_corrected) == sqRead_corrected); // appropriate for the supplied
bool isTrm = ((w & sqRead_trimmed) == sqRead_trimmed); // sqRead_which.
Expand Down
4 changes: 4 additions & 0 deletions src/stores/sqStore.H
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ public:

private:
sqReadSeq *sqStore_getSeq(sqRead_which w) {

if (w == sqRead_unset) // If w is somehow set to the unset state,
w = sqRead_defaultVersion; // go back to using the global default.

bool isRaw = ((w & sqRead_raw) == sqRead_raw);
bool isCor = ((w & sqRead_corrected) == sqRead_corrected);
bool isTrm = ((w & sqRead_trimmed) == sqRead_trimmed);
Expand Down

0 comments on commit 8da1b99

Please sign in to comment.