Eitan177 commited on
Commit
2f505dd
·
1 Parent(s): bfde795

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -221,7 +221,9 @@ if file_to_lookat !=[] and sub:
221
  tovcf['alt']=table_of_penn_file['Alt']
222
  nameuse=re.sub('xlsx$','vcf',file_to_lookat[j].name)
223
  tovcf.to_csv(nameuse,sep='\t',header=False, index=False)
224
- bytes_data=nameuse.read()
 
 
225
  with open(os.path.join("input",nameuse),"wb") as f:
226
  f.write(bytes_data)
227
  f.close()
 
221
  tovcf['alt']=table_of_penn_file['Alt']
222
  nameuse=re.sub('xlsx$','vcf',file_to_lookat[j].name)
223
  tovcf.to_csv(nameuse,sep='\t',header=False, index=False)
224
+ with open(nameuse,"rb") as txt_file:
225
+ bytes_data=txt_file.read()
226
+ txt_file.clost()
227
  with open(os.path.join("input",nameuse),"wb") as f:
228
  f.write(bytes_data)
229
  f.close()