Skip to content

Commit

Permalink
make the pvalue dict an Ordered dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
fidelram committed May 17, 2017
1 parent 7b6b186 commit e89efa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hicexplorer/hicFindTADs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging
import argparse
import json
from collections import OrderedDict
from hicexplorer import HiCMatrix as hm
from hicexplorer.utilities import enlarge_bins
from scipy import sparse
Expand Down Expand Up @@ -1190,7 +1191,7 @@ def min_pvalue(self, min_idx):
pvalues = np.array(pvalues) * len(pvalues)
pvalues[np.array([e > 1 if ~np.isnan(e) else False for e in pvalues])] = 1

return dict(zip(new_min_idx, pvalues))
return OrderedDict(zip(new_min_idx, pvalues))

def find_boundaries(self):

Expand Down

0 comments on commit e89efa0

Please sign in to comment.