https://github.com/kpalin/EEL
Raw File
Tip revision: c0cd936bedca30564088c8aeb8f43ebe4e05421f authored by Kimmo Palin on 07 November 2012, 13:23:26 UTC
Fixed a variable format clash which sometimes caused core dumps.
Tip revision: c0cd936
stripStrands.py
#!/usr/bin/python2.2

import sys

line=sys.stdin.readline()
while len(line)>0:
    if line[0]=="#":
        print line,
    else:
        parts=list(line.split("\t"))
        parts[6]="."
        print "\t".join(parts),
    line=sys.stdin.readline()



back to top