Skip to content

Commit

Permalink
v0.2.1 - automatically convert mapq1 and mapq2 to int in select
Browse files Browse the repository at this point in the history
  • Loading branch information
golobor committed Dec 21, 2018
1 parent a7c51a0 commit 07eb10c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.2.1 (2018-12-21) ###

* automatically convert mapq1 and mapq2 to int in `select`

### 0.2.0 (2018-09-03) ###

* add the `flip` tool
Expand Down
2 changes: 1 addition & 1 deletion pairtools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

__version__ = '0.2.0'
__version__ = '0.2.1'


import click
Expand Down
2 changes: 1 addition & 1 deletion pairtools/pairtools_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def regex_match(x, regex):
'and (chrom2 in new_chroms)').format(condition)

for i,col in enumerate(column_names):
if col in ['pos1', 'pos2']:
if col in ['pos1', 'pos2', 'mapq1', 'mapq2']:
condition = condition.replace(col, 'int(COLS[{}])'.format(i))
else:
condition = condition.replace(col, 'COLS[{}]'.format(i))
Expand Down

0 comments on commit 07eb10c

Please sign in to comment.