Mercurial > repos > iuc > ivar_trim
diff sanitize_bed.py @ 11:5671e1d3d5ee draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ivar/ commit 8ce6fd9aee543d9e62db33a9c95f79d8dc4e6dea
author | iuc |
---|---|
date | Wed, 13 Jul 2022 15:18:33 +0000 |
parents | db536ad45f28 |
children |
line wrap: on
line diff
--- a/sanitize_bed.py Sun Mar 20 11:43:34 2022 +0000 +++ b/sanitize_bed.py Wed Jul 13 15:18:33 2022 +0000 @@ -9,10 +9,11 @@ sanitized_data = [] try: for record in bed_data: - fields = record.split('\t') - sanitized_data.append( - '\t'.join(fields[:4] + ['60'] + fields[5:]) - ) + if record.strip(): + fields = record.split('\t') + sanitized_data.append( + '\t'.join(fields[:4] + ['60'] + fields[5:]) + ) except IndexError: pass # leave column number issue to getmasked else: