diff convertEnsembl.py @ 14:76e1b1b21cce default tip

Deleted selected files
author xuebing
date Tue, 13 Mar 2012 19:05:10 -0400
parents 292186c14b08
children
line wrap: on
line diff
--- a/convertEnsembl.py	Sat Mar 10 08:17:36 2012 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-'''
-convert ensembl bed to ucsc
-add chr to chromosome
-1 = +
--1 = -
-'''
-
-import sys
-f = open(sys.argv[1])
-out = open(sys.argv[2],'w')
-skip = int(sys.argv[3])
-
-for i in range(skip):
-    f.readline()
-
-for line in f:
-    flds = line.strip().split('\t')
-    flds[0] = 'chr'+flds[0]
-    if flds[5] == '1':
-        flds[5] = '+'
-    else:
-        flds[5] = '-'
-    out.write('\t'.join(flds)+'\n')
-f.close()
-out.close()
-