Mercurial > repos > iuc > sqlite_to_tabular
diff filters.py @ 11:bce29ec10b78 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/query_tabular commit d624cde6382bc326a5ae318482e16e643ef7d7d1"
author | iuc |
---|---|
date | Fri, 12 Feb 2021 21:20:55 +0000 |
parents | 4678715f7147 |
children | c29d2f80a066 |
line wrap: on
line diff
--- a/filters.py Thu Sep 24 11:27:11 2020 +0000 +++ b/filters.py Fri Feb 12 21:20:55 2021 +0000 @@ -82,7 +82,7 @@ def replace_add(self, line, pat, rep, col, pos): fields = line.rstrip('\r\n').split('\t') - i = pos if pos else len(fields) + i = pos if pos is not None else len(fields) val = '' if col < len(fields) and re.search(pat, fields[col]): val = re.sub(pat, rep, fields[col]).replace('\t', ' ')