Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,7 @@ def draw_mass_spectrum(peak_data_path):
|
|
| 119 |
ms2 = spectrum_processing(ms2)
|
| 120 |
Mz = np.array(ms2.mz)
|
| 121 |
Intens = np.array(ms2.intensities)
|
| 122 |
-
plt.figure(figsize=(
|
| 123 |
for i in range(len(Mz)):
|
| 124 |
plt.axvline(x=Mz[i], ymin=0, ymax=Intens[i],c='red')
|
| 125 |
plt.xlabel("m/z")
|
|
@@ -409,7 +409,7 @@ def rank_user_lib(candidate_file,spectrum_path,instrument_type,adduct,collision_
|
|
| 409 |
|
| 410 |
with gr.Blocks(theme=seafoam) as demo:
|
| 411 |
gr.HTML(custom_css)
|
| 412 |
-
gr.Markdown('<div style="font-size:
|
| 413 |
|
| 414 |
#gr.Markdown('<div style="font-size:20px;">You can select from a list of collected databases or upload your structural file by Clicking the button. The MS/MS spectrum to be identified can be uploaded in MSP format. You also need to set the necessary experimental parameters for the input spectrum, including accurate precursor mass and collision energy. Finally, by clicking the "Cross-Modal Retrieval" button, you can retrieve candidates from the selected database or your own structural file and access identification results that include compound structures, scores, and rankings.</div>')
|
| 415 |
with gr.Tab(label="📶 Struture library", elem_id='custom_tab'):
|
|
|
|
| 119 |
ms2 = spectrum_processing(ms2)
|
| 120 |
Mz = np.array(ms2.mz)
|
| 121 |
Intens = np.array(ms2.intensities)
|
| 122 |
+
plt.figure(figsize=(7,3))
|
| 123 |
for i in range(len(Mz)):
|
| 124 |
plt.axvline(x=Mz[i], ymin=0, ymax=Intens[i],c='red')
|
| 125 |
plt.xlabel("m/z")
|
|
|
|
| 409 |
|
| 410 |
with gr.Blocks(theme=seafoam) as demo:
|
| 411 |
gr.HTML(custom_css)
|
| 412 |
+
gr.Markdown('<div style="font-size:100px; font-weight:bold;">🔍 CSU-MS2 web server </div>')
|
| 413 |
|
| 414 |
#gr.Markdown('<div style="font-size:20px;">You can select from a list of collected databases or upload your structural file by Clicking the button. The MS/MS spectrum to be identified can be uploaded in MSP format. You also need to set the necessary experimental parameters for the input spectrum, including accurate precursor mass and collision energy. Finally, by clicking the "Cross-Modal Retrieval" button, you can retrieve candidates from the selected database or your own structural file and access identification results that include compound structures, scores, and rankings.</div>')
|
| 415 |
with gr.Tab(label="📶 Struture library", elem_id='custom_tab'):
|