File size: 1,460 Bytes
e9e75df
869dc68
e9e75df
80298c4
e9e75df
db90014
e9e75df
 
 
 
 
db90014
e9e75df
 
db90014
e9e75df
db90014
 
 
 
 
 
 
 
 
 
e9e75df
db90014
 
 
 
 
e9e75df
db90014
e9e75df
869dc68
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import streamlit as st
import demo 


st.set_page_config(
    page_title="GenAI for Protein Design",
    page_icon="🧬",
    layout="wide",
    initial_sidebar_state="expanded",
)

st.title("Protein Design Driven by Chroma")


# the mapping between the function and use case
demoDict={
    "UnconditionalGenerate":demo.GenerateProteinDemo,
    "ComplexGenerate":demo.complexSampleDemo,
    "SymmetricGenerate":demo.symmetricSampleDemo,
    "ShapeConstrainedGenerate":demo.shapeSampleDemo,
    "FoldConditionGenerate":demo.foldSampleDemo,
    "SecondStructureConditionGenerate":demo.ssSampleDemo,
    "SubstructureConditionGenerate":demo.substructureSampleDemo,
    # "NatureLanguageConditionGenerate":demo.natureLanguageSampleDemo,
    "CombiningSymmetryAndSecondaryConditionGenerate":demo.cSSStructureSampleDemo,
    "MergingSymmetryAndSubstructureConditionGenerate":demo.mSSubstructureSampleDemo,
}
# sidebar for demo options
selected_branch = st.sidebar.selectbox("Select the Function to Run:", list(demoDict.keys()))
style=st.sidebar.selectbox("Select Visualization Style:Can be 'stick', 'sphere', 'cross','cartoon'",('stick', 'sphere', 'cross','cartoon'),key='style')
resn=st.sidebar.selectbox("Select the Amino Acid Type to Display",
                          ('*', 'ALA','ARG','ASN','ASP','CYS','GLN','GLU','GLY','HIS','ILE','LEU','LYS','MET','PHE','PRO','SER','THR','TRP','TYR','VAL'),key='resn')

# Exectuion
demoDict[selected_branch](style,resn)