File size: 1,544 Bytes
5b07bd4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
39
40
41
42
43
import streamlit as st
from rdkit.Chem import MACCSkeys
from rdkit import Chem
import numpy as np
import pandas as pd
import xgboost as xgb
# import torch
# import torch.nn as nn
# import torch.nn.functional as F
# from torch.autograd import Variable
# from torch.utils.data import Dataset
# import torch.utils.data 
# from torch_geometric.data import DataLoader
# from torch_geometric.data import Data

# from torch_geometric.nn import GATConv, RGCNConv, GCNConv, global_add_pool, global_mean_pool, global_max_pool, GlobalAttention, Set2Set
from sklearn.metrics import f1_score, accuracy_score, average_precision_score, roc_auc_score

import rdkit
from rdkit.Chem.Scaffolds import MurckoScaffold

# from itertools import compress
# import random
# from collections import defaultdict
import pickle
device = 'cpu'
model_path = 'model/'

st.set_page_config(
    page_title='Hello'
)
st.write('# JAK inhibiition prediction app')
st.sidebar.success('Select a page above')

st.markdown(
    """
        * This is an open-source app framework built specifically for JAK inhibition of a certain drug with its SMILES as input.
        * Suitable model(s) could be chosen for prediction based on your need (in JAK page). 
        * Simple machine learning models, tree models, graph-based models and bert models are trained ane evaluated (results in Model Evaluation page). 
        * Area uder the curve could also be drawn based on our test set results (in Plot AUC page). 
        Prediction should be used with caution and just for reference.
""")