Skip to content

Commit

Permalink
Update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kcha committed Oct 23, 2020
1 parent a6ecd0c commit c7ea04c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qapa/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _join_names(self):
def get_stripped_name(name):
# If Gencode tables are supplied, the Ensembl transcript ID has a
# version number appended to the ID. We want to strip this out.
match = re.match('ENS\w*T\d+', name)
match = re.match(r'ENS\w*T\d+', name)
if match:
return match.group()
return name
Expand Down
6 changes: 3 additions & 3 deletions tests/python/test_qapa.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ def test_fasta(self, mock_fasta):

@patch('os.system')
def test_quant(self, mock_sys):
# should call create_merged_data.R and compute_pau.R
# should call create_merged_data.R and compute_pau.R
db = NamedTemporaryFile()
args = qapa.getoptions(['quant', '--db', db.name, 'test_1.sf',
'test_2.sf'])
qapa.quant(args)
self.assertRegexpMatches(mock_sys.call_args_list[0][0][0],
self.assertRegex(mock_sys.call_args_list[0][0][0],
r'create_merged_data.R')
self.assertRegexpMatches(mock_sys.call_args_list[1][0][0],
self.assertRegex(mock_sys.call_args_list[1][0][0],
r'compute_pau.R')


Expand Down

0 comments on commit c7ea04c

Please sign in to comment.