Skip to content

Commit 623caef

Browse files
committed
fixed #22 - not sorting the matrix by default
1 parent e1db128 commit 623caef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

intervene/modules/pairwise/pairwise.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
"""
4-
InterVene: a tool for intersection and visualization of multiple genomic region sets
4+
Intervene: a tool for intersection and visualization of multiple genomic region sets
55
Created on January 10, 2017
66
@author: <Aziz Khan>aziz.khan@ncmm.uio.no
77
"""
@@ -22,6 +22,7 @@
2222
from intervene import helpers
2323

2424

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

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

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

0 commit comments

Comments
 (0)