Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
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()
|