Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def update(sequence, word1, word2, word3, sequence_length):
|
|
109 |
st.write("Please try again later or contact support if the issue persists.")
|
110 |
|
111 |
def share_on_twitter(word1, word2, word3, length, plddt):
|
112 |
-
tweet_text = f"I just generated a new protein using #GenPro2 from the seed-words '#{word1}', '#{word2}', and '#{word3}' + sequence length of {length}
|
113 |
tweet_url = f"https://twitter.com/intent/tweet?text={urllib.parse.quote(tweet_text)}"
|
114 |
return tweet_url
|
115 |
|
@@ -165,12 +165,12 @@ if st.session_state.structure_info:
|
|
165 |
""", unsafe_allow_html=True)
|
166 |
|
167 |
tweet_url = share_on_twitter(info["word1"], info["word2"], info["word3"], info["sequence_length"], plddt_score)
|
168 |
-
st.markdown(f"[Share Results]({
|
169 |
|
170 |
st.markdown("""
|
171 |
## What to do next:
|
172 |
|
173 |
-
|
174 |
|
175 |
col1, col2 = st.columns(2)
|
176 |
with col1:
|
@@ -184,7 +184,10 @@ if st.session_state.structure_info:
|
|
184 |
file_name='predicted.pdb',
|
185 |
mime='text/plain',
|
186 |
)
|
187 |
-
|
|
|
|
|
|
|
188 |
1. Click the 'analyze protein' button to use the [BLAST](https://blast.ncbi.nlm.nih.gov/Blast.cgi?PROGRAM=blastp&PAGE_TYPE=BlastSearch&LINK_LOC=blasthome) search database tool and see if your protein matches any known sequences. The sequence identity will show how close your sequence matches. *Note this can take several minutes
|
189 |
2. Download your protein data and visit the [Protein Data Bank (PDB)](https://www.rcsb.org/) to match your protein structure against known protein structures.
|
190 |
3. If you think you've discovered a new and useful protein for humans message us!
|
@@ -193,5 +196,3 @@ if st.session_state.structure_info:
|
|
193 |
**Remember, this folding is based on randomly generated sequences. Interpret the results with caution.
|
194 |
Enjoy exploring the world of protein sequences!
|
195 |
""")
|
196 |
-
|
197 |
-
|
|
|
109 |
st.write("Please try again later or contact support if the issue persists.")
|
110 |
|
111 |
def share_on_twitter(word1, word2, word3, length, plddt):
|
112 |
+
tweet_text = f"I just generated a new protein using #GenPro2 by @WandsAI from the seed-words '#{word1}', '#{word2}', and '#{word3}' + sequence length of {length}. My Proteins plDDT Score is: {plddt}%!"
|
113 |
tweet_url = f"https://twitter.com/intent/tweet?text={urllib.parse.quote(tweet_text)}"
|
114 |
return tweet_url
|
115 |
|
|
|
165 |
""", unsafe_allow_html=True)
|
166 |
|
167 |
tweet_url = share_on_twitter(info["word1"], info["word2"], info["word3"], info["sequence_length"], plddt_score)
|
168 |
+
st.markdown(f"[Share Results]({https://huggingface.co/spaces/WANDSAI/GenPro2})")
|
169 |
|
170 |
st.markdown("""
|
171 |
## What to do next:
|
172 |
|
173 |
+
""")
|
174 |
|
175 |
col1, col2 = st.columns(2)
|
176 |
with col1:
|
|
|
184 |
file_name='predicted.pdb',
|
185 |
mime='text/plain',
|
186 |
)
|
187 |
+
|
188 |
+
st.markdown("""
|
189 |
+
If you find an interesting protein from the sequence folding, you can explore it even further:
|
190 |
+
|
191 |
1. Click the 'analyze protein' button to use the [BLAST](https://blast.ncbi.nlm.nih.gov/Blast.cgi?PROGRAM=blastp&PAGE_TYPE=BlastSearch&LINK_LOC=blasthome) search database tool and see if your protein matches any known sequences. The sequence identity will show how close your sequence matches. *Note this can take several minutes
|
192 |
2. Download your protein data and visit the [Protein Data Bank (PDB)](https://www.rcsb.org/) to match your protein structure against known protein structures.
|
193 |
3. If you think you've discovered a new and useful protein for humans message us!
|
|
|
196 |
**Remember, this folding is based on randomly generated sequences. Interpret the results with caution.
|
197 |
Enjoy exploring the world of protein sequences!
|
198 |
""")
|
|
|
|