Erva Ulusoy commited on
Commit
d5eadf8
·
1 Parent(s): ec82ae1

increased max protein count to 1000

Browse files
Files changed (1) hide show
  1. ProtHGT_app.py +5 -8
ProtHGT_app.py CHANGED
@@ -60,9 +60,6 @@ with st.sidebar:
60
  <div class="title">ProtHGT</div>
61
  <div class="subtitle">Heterogeneous Graph Transformers for Automated Protein Function Prediction Using Knowledge Graphs and Language Models</div>
62
  <div class="badges">
63
- <a href="">
64
- <img src="https://img.shields.io/badge/DOI-10.1002/pro.4988-b31b1b.svg" alt="publication">
65
- </a>
66
  <a href="https://github.com/HUBioDataLab/ProtHGT">
67
  <img src="https://img.shields.io/badge/GitHub-black?logo=github" alt="github-repository">
68
  </a>
@@ -94,7 +91,7 @@ with st.sidebar:
94
  "Select or search for proteins (UniProt IDs)",
95
  options=available_proteins,
96
  placeholder="Start typing to search...",
97
- max_selections=100
98
  )
99
 
100
  if selected_proteins:
@@ -102,7 +99,7 @@ with st.sidebar:
102
 
103
  else:
104
  uploaded_file = st.file_uploader(
105
- "Upload a text file with UniProt IDs (one per line, max 100)*",
106
  type=['txt']
107
  )
108
 
@@ -116,8 +113,8 @@ with st.sidebar:
116
  protein_list = [p for p in protein_list if p in available_proteins]
117
  proteins_not_found = [p for p in protein_list if p not in available_proteins]
118
 
119
- if len(protein_list) > 100:
120
- st.error("Please upload a file with maximum 100 protein IDs.")
121
  selected_proteins = []
122
  else:
123
  selected_proteins = protein_list
@@ -172,7 +169,7 @@ with st.sidebar:
172
  help="Choose which GO category to generate predictions for. Selecting 'All Categories' will generate predictions for all three categories."
173
  )
174
 
175
- st.warning("⚠️ Due to memory and computational constraints, the maximum number of proteins that can be processed at once is limited to 100 proteins. For larger datasets, please consider running the model locally using our GitHub repository.")
176
 
177
  if selected_proteins and selected_go_category:
178
  # Add a button to trigger predictions
 
60
  <div class="title">ProtHGT</div>
61
  <div class="subtitle">Heterogeneous Graph Transformers for Automated Protein Function Prediction Using Knowledge Graphs and Language Models</div>
62
  <div class="badges">
 
 
 
63
  <a href="https://github.com/HUBioDataLab/ProtHGT">
64
  <img src="https://img.shields.io/badge/GitHub-black?logo=github" alt="github-repository">
65
  </a>
 
91
  "Select or search for proteins (UniProt IDs)",
92
  options=available_proteins,
93
  placeholder="Start typing to search...",
94
+ max_selections=1000
95
  )
96
 
97
  if selected_proteins:
 
99
 
100
  else:
101
  uploaded_file = st.file_uploader(
102
+ "Upload a text file with UniProt IDs (one per line, max 1000)*",
103
  type=['txt']
104
  )
105
 
 
113
  protein_list = [p for p in protein_list if p in available_proteins]
114
  proteins_not_found = [p for p in protein_list if p not in available_proteins]
115
 
116
+ if len(protein_list) > 1000:
117
+ st.error("Please upload a file with maximum 1000 protein IDs.")
118
  selected_proteins = []
119
  else:
120
  selected_proteins = protein_list
 
169
  help="Choose which GO category to generate predictions for. Selecting 'All Categories' will generate predictions for all three categories."
170
  )
171
 
172
+ st.warning("⚠️ Due to memory and computational constraints, the maximum number of proteins that can be processed at once is limited to 1000 proteins. For larger datasets, please consider running the model locally using our GitHub repository.")
173
 
174
  if selected_proteins and selected_go_category:
175
  # Add a button to trigger predictions