18 lines
416 B
Python
18 lines
416 B
Python
|
import csv
|
||
|
|
||
|
|
||
|
def makeoutput(infile, outfile):
|
||
|
counter = 0
|
||
|
with open(infile) as tsvfile:
|
||
|
reader = csv.reader(tsvfile, delimiter='\t')
|
||
|
for row in reader:
|
||
|
counter+=1
|
||
|
|
||
|
with open(outfile, 'wt') as tsvfile:
|
||
|
tsv_writer = csv.writer(tsvfile, delimiter='\t')
|
||
|
for i in range(counter):
|
||
|
tsv_writer.writerow('S')
|
||
|
|
||
|
makeoutput("test-A/in.tsv", "test-A/out.tsv")
|
||
|
|