Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
·
8302949
1
Parent(s):
4e4cccb
Update code/add_sasa.py
Browse files- code/add_sasa.py +0 -13
code/add_sasa.py
CHANGED
@@ -8,7 +8,6 @@ import os
|
|
8 |
from pathlib import Path
|
9 |
import gzip
|
10 |
import shutil
|
11 |
-
from huggingface_hub import HfApi
|
12 |
import streamlit as st
|
13 |
|
14 |
|
@@ -44,18 +43,6 @@ def run_freesasa(infile, outfile, include_hetatms=True, outdir=None, force_rerun
|
|
44 |
stderr=subprocess.PIPE,
|
45 |
shell=True)
|
46 |
out, err = command.communicate()
|
47 |
-
st.write('OUT')
|
48 |
-
st.write(outfile)
|
49 |
-
"""
|
50 |
-
api = HfApi()
|
51 |
-
st.write('API')
|
52 |
-
st.write(api)
|
53 |
-
api.upload_file(
|
54 |
-
path_or_fileobj=outfile,
|
55 |
-
path_in_repo="HUBioDataLab/ASCARIS/out_files/pdb/freesasa_files",
|
56 |
-
repo_id="HUBioDataLab/ASCARIS",
|
57 |
-
repo_type="space")
|
58 |
-
"""
|
59 |
return outfile
|
60 |
|
61 |
def calculate_freesasa(ID, model_num, existing_free_sasa, path_to_input,path_to_output_files, file_type = 'gzip'):
|
|
|
8 |
from pathlib import Path
|
9 |
import gzip
|
10 |
import shutil
|
|
|
11 |
import streamlit as st
|
12 |
|
13 |
|
|
|
43 |
stderr=subprocess.PIPE,
|
44 |
shell=True)
|
45 |
out, err = command.communicate()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
return outfile
|
47 |
|
48 |
def calculate_freesasa(ID, model_num, existing_free_sasa, path_to_input,path_to_output_files, file_type = 'gzip'):
|