Skip to content

Commit

Permalink
Restoring two cooler load functions which were should not be removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimwolff committed Mar 13, 2018
1 parent a823be9 commit 94c44f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hicexplorer/HiCMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ def __init__(self, matrixFile=None, file_format=None, skiprows=None, chrnameList
self.interval_trees, self.chrBinBoundaries = \
self.intervalListToIntervalTree(self.cut_intervals)

def load_cool_only_init(self, pMatrixFile):
self.cooler_file = cooler.Cooler(pMatrixFile)

def load_cool_matrix(self, pChr):
return self.cooler_file.matrix(balance=False, as_pixels=True).fetch(pChr)

def load_cool(self, pMatrixFile, pChrnameList=None, pMatrixOnly=None, pIntraChromosomalOnly=None):
try:
cooler_file = cooler.Cooler(pMatrixFile)
Expand Down

0 comments on commit 94c44f2

Please sign in to comment.