Minor text corrections, file loading corrections
This commit is contained in:
parent
e63f9e29e5
commit
14af947433
@ -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>
|
||||
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>
|
||||
Minimum system requirements: 2 core processor, 8 GB ram (long loading times)<br>
|
||||
36
app.jl
36
app.jl
@ -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,6 +297,11 @@ include("./julia_imzML_visual.jl")
|
||||
btnStartDisable=true
|
||||
full_route=full_routeMz
|
||||
end
|
||||
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
|
||||
@ -289,18 +311,16 @@ include("./julia_imzML_visual.jl")
|
||||
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"
|
||||
end
|
||||
end
|
||||
xCoord=0
|
||||
yCoord=0
|
||||
end
|
||||
|
||||
10
app.jl.html
10
app.jl.html
@ -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>
|
||||
|
||||
|
||||
2
config/env/global.jl
vendored
2
config/env/global.jl
vendored
@ -1 +1 @@
|
||||
ENV["GENIE_ENV"] = "prod"
|
||||
ENV["GENIE_ENV"] = "dev"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user