Skip to content

Commit

Permalink
prepare pip package
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusdv committed Dec 11, 2015
1 parent d9ee4c2 commit 0dc8153
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 12 deletions.
27 changes: 15 additions & 12 deletions filtus/Filtus.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,13 +658,12 @@ def notbusy(self):
self.widgets = {}
self.isBusy = False

root = Pmw.initialise()
filtus = FiltusGUI(root)
#root.mainloop() # moved to bottom of file

def main():
root = Pmw.initialise()
filtus = FiltusGUI(root)
#root.mainloop() # moved to bottom of file

if __name__ == "__main__":

printVF = FiltusAnalysis._printVF
test_csv = ["example_files\\test%d.csv" %i for i in (1,2)]
test_vcf = "example_files\\vcf_test.vcf"
Expand Down Expand Up @@ -838,12 +837,16 @@ def test_plink():
print 'all tests passed'
else:
locals()[sys.argv[1]]()

try:
root.mainloop()
except KeyboardInterrupt:
root.destroy()
except Exception as e:
print e
root.destroy()

if __name__ == "__main__":
main()

try:
root.mainloop()
except KeyboardInterrupt:
root.destroy()
except Exception as e:
print e
root.destroy()

2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
matplotlib==1.5.0
pmw==2.0.1
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
50 changes: 50 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env python

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

config = {
'name': 'filtus',
'version': '1.0.0',
'description': 'Analysis of exome variant files',
'long_description': open('README.md').read(),
'author': 'Magnus Dehli Vigeland',
'author_email': '[email protected]',
'license': 'GPL-2',
'url': 'https://github.com/magnusdv/filtus',
'download_url': 'https://github.com/magnusdv/filtus/tarball/v1.0.0',
'install_requires': [
'matplotlib',
'pmw'
],
'packages': [
'filtus'
],
'classifiers': [
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)'
],
'keywords': [
'exome',
'variant filtering',
'vcf',
'de novo',
'autozygosity mapping'
],
'entry_points': {
'console_scripts': [
'filtus = filtus.Filtus:main'
]
},
'package_data': {
'filtus': [
'man',
'data',
'testfiles'
]
}
}

setup(**config)

0 comments on commit 0dc8153

Please sign in to comment.