Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarrett-scripps committed Jan 31, 2024
1 parent 701ccda commit b4713be
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions app.py
Original file line number Diff line number Diff line change
@@ -184,7 +184,7 @@

c1, c2 = st.columns(2)

semi_enzymatic = c1.checkbox(label='Semi enzymatic?',
semi_enzymatic = c1.checkbox(label='Semi enzymatic',
help='Allow semi enzymatic peptides?',
value=query_semi_enzymatic)
infer_charge = c2.checkbox(label='Infer charge',
@@ -349,11 +349,11 @@ def add_variable_modification(r):
sites.update(identify_cleavage_sites(protein_sequence, enzyme_regex))
sites = sorted(list(sites))

with st.expander('Edit Sites'):
sites = st.multiselect(label="Sites",
options=list(range(len(stripped_protein_sequence)+1)),
help='The proteases to use for digestion',
default=sites)
#with st.expander('Edit Sites'):
# sites = st.multiselect(label="Sites",
# options=list(range(len(stripped_protein_sequence)+1)),
# help='The proteases to use for digestion',
# default=sites)


df = generate_peptide_df(protein_sequence, sites, missed_cleavages, min_peptide_len, max_peptide_len,
@@ -431,18 +431,19 @@ def add_variable_modification(r):
st.subheader('Peptides')

df['Link'] = [make_clickable(peptide, mass_type) for peptide in df['Sequence']]

cols_to_show = df.columns.tolist()
cols_to_show.remove('StrippedPeptide')
st.dataframe(
df,
df[cols_to_show],
column_config={
"Link": st.column_config.LinkColumn(
display_text="View Ions"),
display_text="ions"),
},
hide_index=True,
use_container_width=True
)



with t2:
st.header('Cleavage & Coverage')

0 comments on commit b4713be

Please sign in to comment.