|
4 | 4 |
|
5 | 5 | Finding sites of enrichment from genome-wide assays. |
6 | 6 |
|
7 | | - Version 0.6 |
| 7 | + Version 0.6.1 |
8 | 8 | */ |
9 | 9 |
|
10 | 10 | #include <stdio.h> |
@@ -3556,7 +3556,7 @@ void addHashPr(Read* r, HashAln** table, |
3556 | 3556 | 0, 0, table, idx, dupsVerb ? r->name : NULL); |
3557 | 3557 |
|
3558 | 3558 | // also add both alignments as singletons to hashtable |
3559 | | - if (tableSn != NULL) { |
| 3559 | + if (tableSn != NULL && hashSizeSn) { |
3560 | 3560 | checkAndAdd(tableSn, hashSizeSn, a->chrom, a->pos[0], |
3561 | 3561 | true, dupsVerb ? r->name : NULL); |
3562 | 3562 | checkAndAdd(tableSn, hashSizeSn, a->chrom, a->pos[1], |
@@ -3680,7 +3680,7 @@ void addHashDc(Read* r, HashAln** table, |
3680 | 3680 | b->strand, table, idx, dupsVerb ? r->name : NULL); |
3681 | 3681 |
|
3682 | 3682 | // also add both alignments as singletons to hashtable |
3683 | | - if (tableSn != NULL) { |
| 3683 | + if (tableSn != NULL && hashSizeSn) { |
3684 | 3684 | if (! j) |
3685 | 3685 | checkAndAdd(tableSn, hashSizeSn, a->chrom, pos, |
3686 | 3686 | a->strand, dupsVerb ? r->name : NULL); |
|
0 commit comments