Spaces:
Sleeping
Sleeping
Commit
·
57b898d
1
Parent(s):
ffa8d40
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
|
@@ -82,7 +82,6 @@ def alphafold(input_set, mode, impute):
|
|
| 82 |
path_to_input_files, path_to_output_files, path_to_domains, fisher_path, path_to_interfaces, alphafold_path, alphafold_summary= manage_files(mode)
|
| 83 |
#out_path = path_to_output_files / 'log.txt'
|
| 84 |
#sys.stdout = open(out_path, 'w')
|
| 85 |
-
alphafold_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename="AF-A0A075B7D0-F1-model_v4.pdb.gz")
|
| 86 |
|
| 87 |
#file_base = str(Path(alphafold_path / '*'))
|
| 88 |
#file_str = glob.glob(file_base)[0].split('-')[-1].split('.')[0]
|
|
@@ -210,9 +209,13 @@ def alphafold(input_set, mode, impute):
|
|
| 210 |
## With new updates, can be updated separately.
|
| 211 |
|
| 212 |
pdb_info = pd.read_csv(alphafold_summary, sep='\t')
|
|
|
|
| 213 |
st.write(pdb_info)
|
|
|
|
|
|
|
| 214 |
## Keeping how many models each AlphaFold structure has.
|
| 215 |
model_count = modelCount(alphafold_path)
|
|
|
|
| 216 |
for k, v in model_count.items():
|
| 217 |
model_count[k] = int(v / 2) # two types of files for each file.
|
| 218 |
uniprot_matched = uniprot_matched.astype(str)
|
|
|
|
| 82 |
path_to_input_files, path_to_output_files, path_to_domains, fisher_path, path_to_interfaces, alphafold_path, alphafold_summary= manage_files(mode)
|
| 83 |
#out_path = path_to_output_files / 'log.txt'
|
| 84 |
#sys.stdout = open(out_path, 'w')
|
|
|
|
| 85 |
|
| 86 |
#file_base = str(Path(alphafold_path / '*'))
|
| 87 |
#file_str = glob.glob(file_base)[0].split('-')[-1].split('.')[0]
|
|
|
|
| 209 |
## With new updates, can be updated separately.
|
| 210 |
|
| 211 |
pdb_info = pd.read_csv(alphafold_summary, sep='\t')
|
| 212 |
+
st.write('PDB INFO')
|
| 213 |
st.write(pdb_info)
|
| 214 |
+
alphafold_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset')
|
| 215 |
+
|
| 216 |
## Keeping how many models each AlphaFold structure has.
|
| 217 |
model_count = modelCount(alphafold_path)
|
| 218 |
+
st.write(model_count)
|
| 219 |
for k, v in model_count.items():
|
| 220 |
model_count[k] = int(v / 2) # two types of files for each file.
|
| 221 |
uniprot_matched = uniprot_matched.astype(str)
|