Commits

Anonymous committed d4facb8

ad_matrix now must be float...

Comments (0)

Files changed (1)

scripts/bam2xgmml.py

       
   # initialize the network
   
-  ad_matrix = scipy.sparse.lil_matrix((len(windows),len(windows)), dtype=np.int)    
+  ad_matrix = scipy.sparse.lil_matrix((len(windows),len(windows)), dtype=np.float)    
   
   for x, r in enumerate(bamh.fetch()):
     # some checks and filters
   if options.dump:
     np.savez(options.dump, node1, node2, weight)
   
-  threshold = 1
+  threshold = 0
   if options.autothreshold == "h":
     n_int = len(weight[weight >= threshold])
     while n_int > threshold: