Skip to content

Commit 897393b

Browse files
committed
third times a charm right
1 parent afe5693 commit 897393b

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ figures/
88

99
# scratch
1010
testing/scratch/
11+
testing/dana_driver.py
1112

1213
# whatever I ever put in here
1314
visual_tests/

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
setup(
44
name = 'swan_vis',
55
packages = ['swan_vis'],
6-
version = '0.0.5',
6+
version = '0.0.7',
77
license='MIT', description = 'swan is a tool for visualizing and analyzing transcript isoforms',
88
author = 'Fairlie Reese',
99
author_email = 'fairlie.reese@gmail.com',
1010
url = 'https://github.com/fairliereese/swan_vis/',
11-
download_url = 'https://github.com/fairliereese/swan_vis/archive/0.0.5-alpha.tar.gz',
11+
download_url = 'https://github.com/fairliereese/swan_vis/archive/0.0.7.tar.gz',
1212
keywords = ['swan', 'transcription', 'isoform', 'visualization'],
1313
install_requires=[
1414
'networkx',
@@ -29,4 +29,9 @@
2929
'Programming Language :: Python :: 3',
3030
'Programming Language :: Python :: 3.7',
3131
],
32+
entry_points={
33+
"console_scripts": [
34+
'swan_patch_networkx=swan_vis.networkx_patch:main'
35+
]
36+
}
3237
)

swan_vis/networkx_patch.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def main():
2+
try:
3+
import networkx as nx
4+
import shutil
5+
nx_loc = nx.__file__
6+
nx_loc = '/'.join(nx_loc.split('/')[:-1])
7+
nx_loc += '/drawing/nx_pylab.py'
8+
nx_file = 'swan_vis/nx_pylab.py'
9+
shutil.copyfile(nx_file, nx_loc)
10+
except:
11+
raise Exception('Unable to patch networkx to allow for dashed edges.')
12+
13+
if __name__ == '__main__': main()

swan_vis/networkx_patch/networkx_patch.py

Lines changed: 0 additions & 10 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)