Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Andrew Stirn
commited on
Commit
·
21a4f44
1
Parent(s):
5dac9ad
delete transcript ID for manually uploaded sequences
Browse files
tiger.py
CHANGED
|
@@ -357,6 +357,9 @@ def tiger_exhibit(transcripts: pd.DataFrame, mode: str, check_off_targets: bool,
|
|
| 357 |
# finalize tables
|
| 358 |
for df in [on_target_predictions, titration_predictions, off_target_predictions]:
|
| 359 |
if df is not None and len(df) > 0:
|
|
|
|
|
|
|
|
|
|
| 360 |
df[GUIDE_COL] = df[GUIDE_COL].apply(lambda s: s[::-1]) # reverse guide sequences
|
| 361 |
df[TARGET_COL] = df[TARGET_COL].apply(lambda seq: seq[CONTEXT_5P:len(seq) - CONTEXT_3P]) # remove context
|
| 362 |
|
|
|
|
| 357 |
# finalize tables
|
| 358 |
for df in [on_target_predictions, titration_predictions, off_target_predictions]:
|
| 359 |
if df is not None and len(df) > 0:
|
| 360 |
+
for col in df.columns:
|
| 361 |
+
if ID_COL in col and set(df[col].unique()) == {'ManualEntry'}:
|
| 362 |
+
del df[col]
|
| 363 |
df[GUIDE_COL] = df[GUIDE_COL].apply(lambda s: s[::-1]) # reverse guide sequences
|
| 364 |
df[TARGET_COL] = df[TARGET_COL].apply(lambda seq: seq[CONTEXT_5P:len(seq) - CONTEXT_3P]) # remove context
|
| 365 |
|