Skip to content

Commit

Permalink
fixed #22 - not sorting the matrix by default
Browse files Browse the repository at this point in the history
  • Loading branch information
asntech committed Oct 14, 2020
1 parent e1db128 commit 623caef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions intervene/modules/pairwise/pairwise.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8

"""
InterVene: a tool for intersection and visualization of multiple genomic region sets
Intervene: a tool for intersection and visualization of multiple genomic region sets
Created on January 10, 2017
@author: <Aziz Khan>[email protected]
"""
Expand All @@ -22,6 +22,7 @@
from intervene import helpers


#parts of the code is adopted from pybedtools
def get_name(fname):
return op.splitext(op.basename(fname))[0]

Expand Down Expand Up @@ -423,7 +424,9 @@ def pairwise_intersection(label_names, options):
#if options.verbose:
# sys.stderr.write('Time to construct %s x %s matrix: %.1fs' \
# % (nfiles, nfiles, (t1 - t0)) + '\n')
keys = sorted(matrix.keys())
## Keyes were sorted until version 0.6.4
#keys = sorted(matrix.keys())
keys = matrix.keys()

matrix_file = options.output+'/'+str(options.project)+'_'+options.command+'_'+options.compute+'_matrix.txt'

Expand Down

0 comments on commit 623caef

Please sign in to comment.