We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a6a014 commit 8d186d0Copy full SHA for 8d186d0
scripts/stats_wrapper.py
@@ -28,8 +28,6 @@
28
smallfile.close()
29
small_filename = 'small_file_{}.txt'.format(lineno + lines_per_file)
30
smallfile = open(small_filename, "w")
31
- if num_small_file > 1:
32
- smallfile.write(f'chrom\tstart\tend\tsamples')
33
smallfile.write(line)
34
if smallfile:
35
num_small_file += 1
@@ -49,5 +47,6 @@
49
47
# Block copy rest of file from input to output without parsing
50
48
shutil.copyfileobj(infile, outfile)
51
print(fname + " has been imported.")
52
-os.remove('small_file*')
+for file in files:
+ os.remove(file)
53
0 commit comments