1. mirnylab
  2. hiclib

Commits

mimakaev  committed 45240b2

Minor changes

  • Participants
  • Parent commits d98dc20
  • Branches noSS

Comments (0)

Files changed (2)

File examples/filteringManyDatasets/mergeDatasets.py

View file
  • Ignore whitespace
 
 
 def source(ID):
+    return ID
     return "/net/tamm/home/magus/gigareadHiC/data/%s.fastq.hdf5" % ID
 
 

File src/hiclib/binnedData.py

View file
  • Ignore whitespace
         cismap = self.chromosomeIndex[:, None] == self.chromosomeIndex[None, :]
         cissums = np.sum(cismap * data, axis=0)
         allsums = np.sum(data, axis=0)
-        if mode == "All":
+        if mode.lower() == "all":
             cissums += self.singlesDict[filename]
             allsums += self.singlesDict[filename]
-        elif mode == "Dummy":
+        elif mode.lower() == "dummy":
             sm = np.mean(self.singlesDict[filename])
             fakesm = cissums * sm / np.mean(cissums)
             cissums += fakesm
             allsums += fakesm
-        elif mode == "Matrix":
+        elif mode.lower() == "matrix":
             pass
         else:
             raise