Skip to content

Commit

Permalink
🔥 small but great performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mflevine committed Dec 12, 2018
1 parent 629ef50 commit 429cdea
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mergesvvcf/locations.py → mergesvvcf/locations.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def __find__(self, locn):
if super(locationdict, self).__contains__(locn+off):
present = True
foundoff = off
break
return present, foundoff

def __contains__(self, locn):
Expand Down
1 change: 1 addition & 0 deletions mergesvvcf/mergedfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
import pyximport; pyximport.install()
import os
import operator
import pysam
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

packages=find_packages(exclude=['contrib', 'docs', 'tests*']),

install_requires=['pysam'],
install_requires=['pysam','Cython'],

test_suite='tests',

Expand Down

0 comments on commit 429cdea

Please sign in to comment.