Skip to content

Commit

Permalink
fix problem with hicCompareMatrices
Browse files Browse the repository at this point in the history
  • Loading branch information
fidelram committed Nov 15, 2017
1 parent 166a01a commit 1d629d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hicexplorer/hicCompareMatrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def main():
nan_bins = set(hic1.nan_bins)
nan_bins = nan_bins.union(hic2.nan_bins)

if args.operation is 'diff':
if args.operation == 'diff':
new_matrix = hic1.matrix - hic2.matrix
elif args.operation is 'ratio' or args.operation is 'log2ratio':
elif args.operation in ['ratio', 'log2ratio']:
hic2.matrix.data = float(1) / hic2.matrix.data
new_matrix = hic1.matrix.multiply(hic2.matrix)
# just in case
Expand Down

0 comments on commit 1d629d3

Please sign in to comment.