Minor text corrections, file loading corrections

This commit is contained in:
Pixelguy14 2025-02-19 11:32:34 -06:00
parent e63f9e29e5
commit 14af947433
4 changed files with 51 additions and 32 deletions

View File

@ -25,6 +25,5 @@ A Graphical User Interface for MSI in Julia: https://github.com/CINVESTAV-LABI/j
3. After the script has finished loading, You can open a page (http://127.0.0.1:1481/) in your browser with the web app running.
Additional notes:<br>
After the first boot initializes the packages in your computer, subsequent uses of the app should not take longer to load.<br>
Recomended system requirements: 4 core processor, 8 GB ram<br>
Minimum system requirements: 2 core processor, 8 GB ram (long loading times)<br>
After the first boot initializes the packages in your computer, subsequent uses of the app should take less time to load.<br>
Recomended system requirements: 4 core processor, 8 GB ram<br>

66
app.jl
View File

@ -72,10 +72,10 @@ include("./julia_imzML_visual.jl")
## Tabulation variables
@out tabIDs=["tab0","tab1","tab2","tab3","tab4"]
@out tabLabels=["Image", "TrIQ", "Spectrum Plot", "Topology Plot","Surface Plot"]
@out tabLabels=["Image", "TrIQ", "Spectrum Plot", "Topography Plot","Surface Plot"]
@in selectedTab="tab0"
@out CompTabIDs=["tab0","tab1","tab2","tab3","tab4"]
@out CompTabLabels=["Image", "TrIQ", "Spectrum Plot", "Topology Plot","Surface Plot"]
@out CompTabLabels=["Image", "TrIQ", "Spectrum Plot", "Topography Plot","Surface Plot"]
@in CompSelectedTab="tab0"
# Interface Images
@ -247,6 +247,7 @@ include("./julia_imzML_visual.jl")
@onbutton btnSearch begin
full_route=pick_file(; filterlist="imzML,mzML")
msg=""
if full_route==""
msg="No file selected"
warning_msg=true
@ -260,9 +261,25 @@ include("./julia_imzML_visual.jl")
# Splitting the route with regex from imzml to mzml so the plotting can work
full_routeMz=replace(full_route, r"\.[^.]*$" => ".mzML")
if isfile(full_routeMz)
# We enable coord search and spectra plot creation
# Start the sum spectrum creation on loading
progressSpectraPlot=true
btnPlotDisable=true
btnStartDisable=true
msg="Loading SUM spectrum plot..."
sTime=time()
plotdata, plotlayout, xSpectraMz, ySpectraMz=sumSpectrumPlot(full_routeMz)
selectedTab="tab2"
progressSpectraPlot=false
btnPlotDisable=false
# We enable coord search and spectra plot creation, also re-enable main process
btnSpectraDisable=false
SpectraEnabled=true
btnStartDisable=false
fTime=time()
eTime=round(fTime-sTime,digits=3)
msg="Plot loaded in $(eTime) seconds"
else
# If there's no MzML file, we deny access again
btnSpectraDisable=true
@ -280,26 +297,29 @@ include("./julia_imzML_visual.jl")
btnStartDisable=true
full_route=full_routeMz
end
progressSpectraPlot=true
btnPlotDisable=true
btnStartDisable=true
msg="Loading SUM spectrum plot..."
sTime=time()
plotdata, plotlayout, xSpectraMz, ySpectraMz=sumSpectrumPlot(full_routeMz)
selectedTab="tab2"
progressSpectraPlot=false
btnPlotDisable=false
if endswith(full_route, "imzML")
btnStartDisable=false
end
if isfile(full_routeMz)
# We enable coord search and spectra plot creation
btnSpectraDisable=false
SpectraEnabled=true
end
fTime=time()
eTime=round(fTime-sTime,digits=3)
msg="Plot loaded in $(eTime) seconds"
if endswith(full_route, "imzML")
btnStartDisable=false
end
if isfile(full_routeMz)
# Start the sum spectrum creation on loading
progressSpectraPlot=true
btnPlotDisable=true
btnStartDisable=true
msg="Loading SUM spectrum plot..."
sTime=time()
plotdata, plotlayout, xSpectraMz, ySpectraMz=sumSpectrumPlot(full_routeMz)
selectedTab="tab2"
progressSpectraPlot=false
btnPlotDisable=false
# We enable coord search and spectra plot creation
btnSpectraDisable=false
SpectraEnabled=true
fTime=time()
eTime=round(fTime-sTime,digits=3)
msg="Plot loaded in $(eTime) seconds"
end
end
xCoord=0
yCoord=0

View File

@ -60,7 +60,7 @@
label="Generate Spectra" icon="play_arrow">
<template v-slot:loading>
<q-spinner-hourglass class="on-left" />
Loading Plot
Loading plot
</template>
<q-list>
@ -109,25 +109,25 @@
label="Generate Plots" icon="play_arrow">
<template v-slot:loading>
<q-spinner-hourglass class="on-left" />
Loading Plot
Loading plot
</template>
<q-list>
<q-item clickable v-close-popup v-on:click="imageCPlot=true">
<q-item-section>
<q-item-label>Image Topology Plot</q-item-label>
<q-item-label>Image topography Plot</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup v-on:click="triqCPlot=true">
<q-item-section>
<q-item-label>TrIQ Topology Plot</q-item-label>
<q-item-label>TrIQ topography Plot</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup v-on:click="image3dPlot=true">
<q-item-section>
<q-item-label>Image Surface Plot</q-item-label>
<q-item-label>Image surface Plot</q-item-label>
</q-item-section>
</q-item>

View File

@ -1 +1 @@
ENV["GENIE_ENV"] = "prod"
ENV["GENIE_ENV"] = "dev"