Atom Bioworks
commited on
Commit
•
b200805
1
Parent(s):
d3248a6
Update gui.py
Browse files
gui.py
CHANGED
@@ -1,35 +1,21 @@
|
|
1 |
-
from api_prediction import
|
2 |
import gradio as gr
|
3 |
import pandas as pd
|
4 |
import torch
|
5 |
import tempfile
|
6 |
from tabulate import tabulate
|
7 |
-
from PIL import Image
|
8 |
import itertools
|
9 |
import os
|
10 |
-
import RNA
|
11 |
-
import matplotlib.pyplot as plt
|
12 |
-
import matplotlib.image as mpimg
|
13 |
import random
|
14 |
-
from scipy.cluster.hierarchy import dendrogram, linkage
|
15 |
# Visualization
|
16 |
-
from Bio.Phylo.PhyloXML import Phylogeny
|
17 |
-
from Bio import SeqIO
|
18 |
-
from Bio.Seq import Seq
|
19 |
-
from Bio.SeqRecord import SeqRecord
|
20 |
-
from Bio import AlignIO
|
21 |
-
from Bio.Align.Applications import MafftCommandline
|
22 |
-
from Bio import Phylo
|
23 |
-
from Bio.Phylo.TreeConstruction import DistanceCalculator, DistanceTreeConstructor
|
24 |
-
import io
|
25 |
|
26 |
os.environ['GRADIO_SERVER_NAME'] = '0.0.0.0'
|
27 |
-
title='
|
28 |
desc='AptaBLE (cross-attention network), trained to predict the likelihood a DNA aptamer will form a complex with a target protein!\n\nPass in a FASTA-formatted file of all aptamers and input your protein target amino acid sequence. Your output scores are available for download via an Excel file.'
|
29 |
|
30 |
global pipeline
|
31 |
|
32 |
-
pipeline =
|
33 |
lr=1e-6,
|
34 |
weight_decay=None,
|
35 |
epochs=None,
|
|
|
1 |
+
from api_prediction import AptaBLE_Pipeline_Dist
|
2 |
import gradio as gr
|
3 |
import pandas as pd
|
4 |
import torch
|
5 |
import tempfile
|
6 |
from tabulate import tabulate
|
|
|
7 |
import itertools
|
8 |
import os
|
|
|
|
|
|
|
9 |
import random
|
|
|
10 |
# Visualization
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
os.environ['GRADIO_SERVER_NAME'] = '0.0.0.0'
|
13 |
+
title='DNAptaBLE Model Inference'
|
14 |
desc='AptaBLE (cross-attention network), trained to predict the likelihood a DNA aptamer will form a complex with a target protein!\n\nPass in a FASTA-formatted file of all aptamers and input your protein target amino acid sequence. Your output scores are available for download via an Excel file.'
|
15 |
|
16 |
global pipeline
|
17 |
|
18 |
+
pipeline = AptaBLE_Pipeline_Dist(
|
19 |
lr=1e-6,
|
20 |
weight_decay=None,
|
21 |
epochs=None,
|