Spaces:
Runtime error
Runtime error
revise readme and docs
Browse files12345---title: Evolutionary Scale Prediction Of Atomic Level Protein Structureemoji: 🌍colorFrom: yellowcolorTo: purple12345---title: Protein Structure Modelingemoji: 🌍colorFrom: yellowcolorTo: purple
274 unmodified lines27527627727827928028126 unmodified lines3083093103113123133143153163179 unmodified lines32732832933033133233319 unmodified lines3533543553563573583592 unmodified lines362363364365366367368274 unmodified linesWe have 120k proteins features stored in our database.The app uses the [MyScale](MyScale Database) to store and query protein sequenceusing vector search."""]26 unmodified linesst.title("Evolutionary Scale Modeling")start = [st.empty(), st.empty(), st.empty(), st.empty(), st.empty(), st.empty(), st.empty()]start[0].info(msg)option = st.selectbox('Application options', ('self-contact prediction', 'search the database', 'activity prediction','PDB viewer'))st.session_state.db_name_ref = 'default.esm_protein'if option == 'self-contact prediction':sequence = st.text_input('protein sequence', '')if st.button('Cas9 Enzyme'):sequence = 'GSGHMDKKYSIGLAIGTNSVGWAVITDEYKVPSKKFKVLGNTDRHSIKKNLIGALLFDSGETAEATRLKRTARRRYTRRKNRILYLQEIFSNEMAKV'9 unmodified linesThis methodology is based on ICLR 2021 paper, Transformer protein language models are unsupervised structure learners.(Rao et al. 2020) The MSA Transformer (ESM-MSA-1) takes a multiple sequence alignment (MSA) as input, and uses the tied row self-attention maps in the same way.""")st.session_state['xq'] = modelelif option == 'search the database':sequence = st.text_input('protein sequence', '')st.write('Try an example:')if st.button('Cas9 Enzyme'):19 unmodified linesstart[2] = st.pyplot(visualize_3D_Coordinates(result_temp_coords).figure)st.session_state['xq'] = modelelif option == 'activity prediction':st.text('we predict the biological activity of mutations of a protein, using fixed embeddings from ESM.')sequence = st.text_input('protein sequence', '')st.write('Try an example:')2 unmodified lineselif st.button('PETase'):sequence = 'MGSSHHHHHHSSGLVPRGSHMRGPNPTAASLEASAGPFTVRSFTVSRPSGYGAGTVYYPTNAGGTVGAIAIVPGYTARQSSIKWWGPRLASHGFVVITIDTNSTLDQPSSRSSQQMAALRQVASLNGTSSSPIYGKVDTARMGVMGWSMGGGGSLISAANNPSLKAAAPQAPWDSSTNFSSVTVPTLIFACENDSIAPVNSSALPIYDSMSRNAKQFLEINGGSHSCANSGNSNQALIGKKGVAWMKRFMDNDTRYSTFACENPNSTRVSDFRTANCSLEDPAANKARKEAELAAATAEQ'elif option == 'PDB viewer':id_PDB = st.text_input('enter PDB ID', '')residues_marker = st.text_input('residues class', '')if residues_marker:274 unmodified lines27527627727827928028126 unmodified lines3083093103113123133143153163173183193203219 unmodified lines33133233333433533633719 unmodified lines3573583593603613623632 unmodified lines366367368369370371372274 unmodified linesWe have 120k proteins features stored in our database.The app uses MyScale to store and query protein sequenceusing vector search."""]26 unmodified linesst.title("Evolutionary Scale Modeling")start = [st.empty(), st.empty(), st.empty(), st.empty(), st.empty(), st.empty(), st.empty()]start[0].info(msg)function_list = ('self-contact prediction','search the database for similar proteins','activity prediction with similar proteins','PDB viewer')option = st.selectbox('Application options', function_list)st.session_state.db_name_ref = 'default.esm_protein'if option == function_list[0]:sequence = st.text_input('protein sequence', '')if st.button('Cas9 Enzyme'):sequence = 'GSGHMDKKYSIGLAIGTNSVGWAVITDEYKVPSKKFKVLGNTDRHSIKKNLIGALLFDSGETAEATRLKRTARRRYTRRKNRILYLQEIFSNEMAKV'9 unmodified linesThis methodology is based on ICLR 2021 paper, Transformer protein language models are unsupervised structure learners.(Rao et al. 2020) The MSA Transformer (ESM-MSA-1) takes a multiple sequence alignment (MSA) as input, and uses the tied row self-attention maps in the same way.""")st.session_state['xq'] = modelelif option == function_list[1]:sequence = st.text_input('protein sequence', '')st.write('Try an example:')if st.button('Cas9 Enzyme'):19 unmodified linesstart[2] = st.pyplot(visualize_3D_Coordinates(result_temp_coords).figure)st.session_state['xq'] = modelelif option == function_list[2]:st.text('we predict the biological activity of mutations of a protein, using fixed embeddings from ESM.')sequence = st.text_input('protein sequence', '')st.write('Try an example:')2 unmodified lineselif st.button('PETase'):sequence = 'MGSSHHHHHHSSGLVPRGSHMRGPNPTAASLEASAGPFTVRSFTVSRPSGYGAGTVYYPTNAGGTVGAIAIVPGYTARQSSIKWWGPRLASHGFVVITIDTNSTLDQPSSRSSQQMAALRQVASLNGTSSSPIYGKVDTARMGVMGWSMGGGGSLISAANNPSLKAAAPQAPWDSSTNFSSVTVPTLIFACENDSIAPVNSSALPIYDSMSRNAKQFLEINGGSHSCANSGNSNQALIGKKGVAWMKRFMDNDTRYSTFACENPNSTRVSDFRTANCSLEDPAANKARKEAELAAATAEQ'elif option == function_list[3]:id_PDB = st.text_input('enter PDB ID', '')residues_marker = st.text_input('residues class', '')if residues_marker:
README.md+1-1
app.py+10-6