Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya committed Jan 14, 2019
1 parent 18179ab commit 13acf2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions coolpup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_combinations(mids, res, local=False, anchor=None):
p = (mids['Pad']//res).values.astype(int)
if local:
for i, pi in zip(m, p):
yield (i, i), (pi, pi)
yield i, i, pi, pi
elif anchor:
anchor_bin = int((anchor[1]+anchor[2])/2//res)
anchor_pad = (anchor[2] - anchor[1])/2
Expand Down Expand Up @@ -391,8 +391,6 @@ def prepare_single(item):
c = cooler.Cooler(args.coolfile)

coolname = args.coolfile.split('::')[0].split('/')[-1].split('.')[0]
if 'mapq30' in args.coolfile:
coolname += '_mapq30'
bedname = args.baselist.split('/')[-1].split('.bed')[0].split('_mm9')[0].split('_mm10')[0]

pad = args.pad*1000//c.binsize
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

setup(
name='coolpuppy',
version='0.5.3',
version='0.5.4',
scripts=['coolpup.py']
)

0 comments on commit 13acf2b

Please sign in to comment.