diff sanitize_bed.py @ 21:1c5448133894 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ivar/ commit 97f230215d53e71748c78cd21633d92143710b94
author iuc
date Wed, 06 Aug 2025 08:23:19 +0000
parents 253935875d96
children
line wrap: on
line diff
--- a/sanitize_bed.py	Thu Mar 13 09:03:24 2025 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-
-
-with open(sys.argv[1]) as i:
-    bed_data = i.readlines()
-
-sanitized_data = []
-try:
-    for record in bed_data:
-        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:
-    with open(sys.argv[1], 'w') as o:
-        o.writelines(sanitized_data)