20250209.03
Browse files- app.py +26 -8
- data/general/finalScreenTSV14 +10 -0
- data/general/finalScreenTSV15 +10 -0
- data/general/finalScreenTSV16 +10 -0
app.py
CHANGED
@@ -36,7 +36,7 @@ hide_streamlit_style = """
|
|
36 |
"""
|
37 |
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
38 |
|
39 |
-
pIdDf = pd.read_csv(os.path.join(ROOT, "
|
40 |
|
41 |
pId = pIdDf['UniProtID'].values
|
42 |
pIdDes = pIdDf['Description'].values
|
@@ -106,8 +106,26 @@ pIdIndex = st.sidebar.selectbox(label = "Select Protein", help = help_input3, op
|
|
106 |
|
107 |
myPid = pId[pIdIndex]
|
108 |
|
109 |
-
intDfOri = pd.read_csv(os.path.join(ROOT, "
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
intDf = intDfOri[intDfOri["accession"]==myPid]
|
112 |
|
113 |
if len(intDf) == 0:
|
@@ -176,7 +194,7 @@ else:
|
|
176 |
}
|
177 |
data = draw_grid(intDf, formatter=formatter, fit_columns=True, selection='none', max_height=340)
|
178 |
with col5:
|
179 |
-
st.image(os.path.join(ROOT, "
|
180 |
|
181 |
fragId = st.sidebar.selectbox(label = "Select Gen1 Fragment", options = intDf["fragId"])
|
182 |
intDf2 = intDfOri[intDfOri["fragId"]==fragId]
|
@@ -200,7 +218,7 @@ else:
|
|
200 |
|
201 |
intDf3 = intDf3.sort_values(by=['ligHits', 'l2fc'], ascending=[True, False])
|
202 |
|
203 |
-
st.sidebar.image(os.path.join(ROOT, "
|
204 |
|
205 |
st.write(f"**:blue[{numProtDetected}]** proteins were enriched by fragment **{fragId}** (Fc compared to **CRF** control). **:blue[{numProtHits}]** of those proteins were labelled as **hits** by applying **medium** filter Set **(:blue[fS])**. **:blue[{bestProt}]** {varText2} **hit**. **:blue[{selectedGeneName}]** {varText} **:blue[{protRank}]**.")
|
206 |
|
@@ -210,7 +228,7 @@ else:
|
|
210 |
|
211 |
col6, col7 = st.columns(2)
|
212 |
with col6:
|
213 |
-
st.image(os.path.join(ROOT, "
|
214 |
with col7:
|
215 |
if len(tempDf2.index) == 0:
|
216 |
st.write("**:red[No]** data to display with selected filters. Applied **:blue[no filter]**")
|
@@ -298,7 +316,7 @@ else:
|
|
298 |
|
299 |
# gen2Id = st.sidebar.selectbox(label = "Select Gen2 Fragment", options = temp4Df["fragId"])
|
300 |
gen2Id = st.sidebar.selectbox(label = "Select Gen2 Fragment", options = sideBarList)
|
301 |
-
st.sidebar.image(os.path.join(ROOT, "
|
302 |
|
303 |
############ Elaborates Fragment Centric View ##########################
|
304 |
|
@@ -349,4 +367,4 @@ else:
|
|
349 |
data = draw_grid(
|
350 |
gen2Df2, formatter=formatter, fit_columns=True, selection='none', max_height=340)
|
351 |
with col9:
|
352 |
-
st.image(os.path.join(ROOT, "
|
|
|
36 |
"""
|
37 |
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
|
38 |
|
39 |
+
pIdDf = pd.read_csv(os.path.join(ROOT, "./data/general/proteinNames4.tsv"), sep="\t")
|
40 |
|
41 |
pId = pIdDf['UniProtID'].values
|
42 |
pIdDes = pIdDf['Description'].values
|
|
|
106 |
|
107 |
myPid = pId[pIdIndex]
|
108 |
|
109 |
+
intDfOri = pd.read_csv(os.path.join(ROOT, "./data/general/finalScreenTSV00"), sep="\t")
|
110 |
+
column_names = intDfOri.columns
|
111 |
+
finalScreenSuffixes = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13"]
|
112 |
+
for eachSuffix in finalScreenSuffixes:
|
113 |
+
fileAppend = "./data/general/finalScreenTSV" + eachSuffix
|
114 |
+
df_temp = pd.read_csv(os.path.join(ROOT, fileAppend), header=None, sep="\t")
|
115 |
+
df_temp.columns = intDfOri.columns
|
116 |
+
intDfOri = pd.concat([intDfOri, df_temp], ignore_index=True)
|
117 |
+
#intDfOri = pd.read_csv(os.path.join(ROOT, "./data/general/finalScreen.tsv"), sep="\t")
|
118 |
+
|
119 |
+
fpDf = pd.read_csv(os.path.join(ROOT, "./data/general/finalFpTSV00"), sep="\t")
|
120 |
+
column_names = fpDf.columns
|
121 |
+
finalFpSuffixes = ["01", "02"]
|
122 |
+
for eachSuffix in finalFpSuffixes:
|
123 |
+
fileAppend = "./data/general/finalFpTSV" + eachSuffix
|
124 |
+
df_temp = pd.read_csv(os.path.join(ROOT, fileAppend), header=None, sep="\t")
|
125 |
+
df_temp.columns = fpDf.columns
|
126 |
+
fpDf = pd.concat([fpDf, df_temp], ignore_index=True)
|
127 |
+
#fpDf = pd.read_csv(os.path.join(ROOT, "./data/general/finalFp.tsv"), sep="\t")
|
128 |
+
|
129 |
intDf = intDfOri[intDfOri["accession"]==myPid]
|
130 |
|
131 |
if len(intDf) == 0:
|
|
|
194 |
}
|
195 |
data = draw_grid(intDf, formatter=formatter, fit_columns=True, selection='none', max_height=340)
|
196 |
with col5:
|
197 |
+
st.image(os.path.join(ROOT, "./assets/proteinCentric/") + myPid + ".png")
|
198 |
|
199 |
fragId = st.sidebar.selectbox(label = "Select Gen1 Fragment", options = intDf["fragId"])
|
200 |
intDf2 = intDfOri[intDfOri["fragId"]==fragId]
|
|
|
218 |
|
219 |
intDf3 = intDf3.sort_values(by=['ligHits', 'l2fc'], ascending=[True, False])
|
220 |
|
221 |
+
st.sidebar.image(os.path.join(ROOT, "./assets/fragFiguresSingle/") + fragId + ".png")
|
222 |
|
223 |
st.write(f"**:blue[{numProtDetected}]** proteins were enriched by fragment **{fragId}** (Fc compared to **CRF** control). **:blue[{numProtHits}]** of those proteins were labelled as **hits** by applying **medium** filter Set **(:blue[fS])**. **:blue[{bestProt}]** {varText2} **hit**. **:blue[{selectedGeneName}]** {varText} **:blue[{protRank}]**.")
|
224 |
|
|
|
228 |
|
229 |
col6, col7 = st.columns(2)
|
230 |
with col6:
|
231 |
+
st.image(os.path.join(ROOT, "./assets/ligandVolcanoPlots/") + fragId + ".png")
|
232 |
with col7:
|
233 |
if len(tempDf2.index) == 0:
|
234 |
st.write("**:red[No]** data to display with selected filters. Applied **:blue[no filter]**")
|
|
|
316 |
|
317 |
# gen2Id = st.sidebar.selectbox(label = "Select Gen2 Fragment", options = temp4Df["fragId"])
|
318 |
gen2Id = st.sidebar.selectbox(label = "Select Gen2 Fragment", options = sideBarList)
|
319 |
+
st.sidebar.image(os.path.join(ROOT, "./assets/fragFiguresSingle/") + gen2Id + ".png")
|
320 |
|
321 |
############ Elaborates Fragment Centric View ##########################
|
322 |
|
|
|
367 |
data = draw_grid(
|
368 |
gen2Df2, formatter=formatter, fit_columns=True, selection='none', max_height=340)
|
369 |
with col9:
|
370 |
+
st.image(os.path.join(ROOT, "./assets/gen2VolcanoPlots/") + gen2Id + ".png")
|
data/general/finalScreenTSV14
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
accession geneName protHits fragId ligHits mdfClass l2fc l2fcM ml10adjP ml10p expId nUniq nPep perCovg rankRel
|
2 |
+
Q8IXH7 NELFCD 91 C001 61 3 4.8 3.73 1.45967993 4.52976356 BD20_057 8 8 16 1
|
3 |
+
Q15165 PON2 91 C001 136 3 4.77 3.7 1.45967993 4.31649479 BD20_057 2 2 7 2
|
4 |
+
Q16740 CLPP 91 C001 87 3 4.37 3.3 1.49119188 4.88106643 BD20_057 8 8 31 3
|
5 |
+
P21796 VDAC1 91 C001 190 3 4.02 2.95 1.14624898 3.56597037 BD20_057 27 29 92 4
|
6 |
+
P49721 PSMB2 91 C001 161 3 4.02 2.95 1.45967993 4.30548645 BD20_057 7 7 42 4
|
7 |
+
O15217 GSTA4 91 C001 27 3 4.01 2.94 1.35876412 3.93162927 BD20_057 5 5 27 6
|
8 |
+
P50897 PPT1 91 C001 160 3 3.84 2.77 1.11782803 3.42877249 BD20_057 9 9 25 7
|
9 |
+
Q06520 SULT2A1 91 C001 13 3 3.83 2.76 1.27712867 3.79194196 BD20_057 2 2 11 8
|
10 |
+
Q9UHX1 PUF60 91 C001 112 3 3.8 2.73 1.45967993 4.6669024 BD20_057 19 19 40 9
|
data/general/finalScreenTSV15
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
P61158 ACTR3 1 C419 4 0 1.8 -0.25 0.4307393 0.62975068 BD22_110 6 8 26 2281
|
2 |
+
P61313 RPL15 1 C419 0 0 1.8 -0.25 0.43092552 1.64819732 BD22_110 9 9 46 2281
|
3 |
+
P62314 SNRPD1 1 C419 0 0 1.8 -0.25 0.41706506 0.52194457 BD22_110 2 2 28 2281
|
4 |
+
P62487 POLR2G 1 C419 0 0 1.8 -0.25 0.42707499 0.58261501 BD22_110 4 4 31 2281
|
5 |
+
P63241 EIF5A 1 C419 0 0 1.8 -0.25 0.43092552 0.66237125 BD22_110 5 12 45 2281
|
6 |
+
Q01780 EXOSC10 1 C419 0 0 1.8 -0.25 0.43092552 0.65597438 BD22_110 13 13 17 2281
|
7 |
+
Q13451 FKBP5 1 C419 1 0 1.8 -0.25 0.43092552 0.71657461 BD22_110 2 3 9 2281
|
8 |
+
Q16643 DBN1 1 C419 0 0 1.8 -0.25 0.43092552 0.6884129 BD22_110 12 12 27 2281
|
9 |
+
Q76FK4 NOL8 1 C419 0 0 1.8 -0.25 0.43092552 0.85305997 BD22_110 5 5 5 2281
|
10 |
+
Q7L2H7 EIF3M 1 C419 1 0 1.8 -0.25 0.4307393 0.62957167 BD22_110 7 7 32 2281
|
data/general/finalScreenTSV16
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
P56182 RRP1 75 C387 0 0 0.72 -0.26 2.37767053 2.60246425 BD21_065 6 6 14 2883
|
2 |
+
P60468 SEC61B 75 C387 0 0 0.72 -0.26 2.13822223 2.32420874 BD21_065 3 3 39 2883
|
3 |
+
P61019 RAB2A 75 C387 5 0 0.72 -0.26 2.24120911 2.44233331 BD21_065 3 8 41 2883
|
4 |
+
P61225 RAP2B 75 C387 1 0 0.72 -0.26 2.01988204 2.18508243 BD21_065 4 8 50 2883
|
5 |
+
P61970 NUTF2 75 C387 3 0 0.72 -0.26 1.59015763 1.70054914 BD21_065 2 2 19 2883
|
6 |
+
P84090 ERH 75 C387 0 0 0.72 -0.26 2.18766892 2.3828976 BD21_065 5 5 44 2883
|
7 |
+
Q12788 TBL3 75 C387 1 0 0.72 -0.26 3.01990055 3.40734023 BD21_065 14 14 24 2883
|
8 |
+
Q15029 EFTUD2 75 C387 0 0 0.72 -0.26 3.63516151 4.28878753 BD21_065 35 36 41 2883
|
9 |
+
Q5JTZ9 AARS2 75 C387 3 0 0.72 -0.26 2.58043661 2.85364898 BD21_065 18 18 23 2883
|
10 |
+
Q6RFH5 WDR74 75 C387 0 0 0.72 -0.26 1.54992033 1.65574865 BD21_065 2 2 8 2883
|