Spaces:
Running on Zero
Running on Zero
Drop the preset dropdown; label the box IDP sequence (66 aa)
Browse files
README.md
CHANGED
|
@@ -60,12 +60,12 @@ and are directly comparable between sequences.
|
|
| 60 |
Also reported: **c_sat**, the first intensity at which the smoothed curve reaches
|
| 61 |
probability 0.8, and the raw per-image calls as a downloadable CSV.
|
| 62 |
|
| 63 |
-
###
|
| 64 |
|
| 65 |
-
The
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
to sequence grammar.
|
| 69 |
|
| 70 |
---
|
| 71 |
|
|
|
|
| 60 |
Also reported: **c_sat**, the first intensity at which the smoothed curve reaches
|
| 61 |
probability 0.8, and the raw per-image calls as a downloadable CSV.
|
| 62 |
|
| 63 |
+
### Default sequence
|
| 64 |
|
| 65 |
+
The box is pre-filled with the **NUP98 IDP**, wild type. Its mutation panel — 92
|
| 66 |
+
sequences of 66 aa covering F→S, F→Y, charge and spacer variants — ships in
|
| 67 |
+
`assets/nup98_mutation_seqs.csv`; paste one in to compare its AUC against WT, which
|
| 68 |
+
is the quickest way to see the model respond to sequence grammar.
|
| 69 |
|
| 70 |
---
|
| 71 |
|
app.py
CHANGED
|
@@ -59,14 +59,13 @@ MUTED = "#52514e"
|
|
| 59 |
SURFACE = "#fcfcfb"
|
| 60 |
|
| 61 |
|
| 62 |
-
def
|
| 63 |
-
"""NUP98
|
| 64 |
df = pd.read_csv(os.path.join(HERE, "assets", "nup98_mutation_seqs.csv"), dtype=str)
|
| 65 |
-
return
|
| 66 |
|
| 67 |
|
| 68 |
-
|
| 69 |
-
DEFAULT_SEQUENCE = PRESETS["NUP98 WT"]
|
| 70 |
|
| 71 |
|
| 72 |
def plot_curve(result: pipeline.Result):
|
|
@@ -207,13 +206,9 @@ def build_condensate_titration_section():
|
|
| 207 |
|
| 208 |
with gr.Row():
|
| 209 |
with gr.Column(scale=2):
|
| 210 |
-
preset = gr.Dropdown(
|
| 211 |
-
choices=list(PRESETS), value="NUP98 WT", label="Load a sequence",
|
| 212 |
-
info="NUP98 IDP and its mutation panel; fills the box below, which you can edit.",
|
| 213 |
-
)
|
| 214 |
sequence = gr.Textbox(
|
| 215 |
value=DEFAULT_SEQUENCE, lines=4,
|
| 216 |
-
label=f"
|
| 217 |
info=(
|
| 218 |
f"Exactly {pipeline.SEQUENCE_LENGTH} single-letter amino acids — the whole "
|
| 219 |
"CondenSeq library is 66-mers. FASTA headers are stripped."
|
|
@@ -241,7 +236,6 @@ def build_condensate_titration_section():
|
|
| 241 |
"""
|
| 242 |
)
|
| 243 |
|
| 244 |
-
preset.change(lambda name: PRESETS[name], inputs=preset, outputs=sequence)
|
| 245 |
run_button.click(
|
| 246 |
analyse,
|
| 247 |
inputs=sequence,
|
|
|
|
| 59 |
SURFACE = "#fcfcfb"
|
| 60 |
|
| 61 |
|
| 62 |
+
def load_default_sequence() -> str:
|
| 63 |
+
"""The NUP98 IDP, wild type -- what the box is pre-filled with."""
|
| 64 |
df = pd.read_csv(os.path.join(HERE, "assets", "nup98_mutation_seqs.csv"), dtype=str)
|
| 65 |
+
return df.loc[df.mutation == "WT", "sequence"].iloc[0]
|
| 66 |
|
| 67 |
|
| 68 |
+
DEFAULT_SEQUENCE = load_default_sequence()
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
def plot_curve(result: pipeline.Result):
|
|
|
|
| 206 |
|
| 207 |
with gr.Row():
|
| 208 |
with gr.Column(scale=2):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
sequence = gr.Textbox(
|
| 210 |
value=DEFAULT_SEQUENCE, lines=4,
|
| 211 |
+
label=f"IDP sequence ({pipeline.SEQUENCE_LENGTH} aa)",
|
| 212 |
info=(
|
| 213 |
f"Exactly {pipeline.SEQUENCE_LENGTH} single-letter amino acids — the whole "
|
| 214 |
"CondenSeq library is 66-mers. FASTA headers are stripped."
|
|
|
|
| 236 |
"""
|
| 237 |
)
|
| 238 |
|
|
|
|
| 239 |
run_button.click(
|
| 240 |
analyse,
|
| 241 |
inputs=sequence,
|