Mercurial > repos > fubar > mashmap
comparison abslen_bed/abslen_bed.python.txt @ 1:0183cad9d13b draft
planemo upload
author | fubar |
---|---|
date | Thu, 22 Feb 2024 10:48:01 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:2beaae16651e | 1:0183cad9d13b |
---|---|
1 #raw | |
2 import sys | |
3 inp = [] | |
4 for line in sys.stdin: | |
5 if line.strip() > '': | |
6 ls = line.split() | |
7 if len(ls) > 2: | |
8 x = abs(int(ls[2]) - int(ls[1])) | |
9 ls.append((str(x))) | |
10 inp.append('\t'.join(ls)) | |
11 else: | |
12 break | |
13 sys.stdout.write('\n'.join(inp)) | |
14 #end raw |