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.
|
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>
|
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>
|
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
|
## Tabulation variables
|
||||||
@out tabIDs=["tab0","tab1","tab2","tab3","tab4"]
|
@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"
|
@in selectedTab="tab0"
|
||||||
@out CompTabIDs=["tab0","tab1","tab2","tab3","tab4"]
|
@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"
|
@in CompSelectedTab="tab0"
|
||||||
|
|
||||||
# Interface Images
|
# Interface Images
|
||||||
@ -247,6 +247,7 @@ include("./julia_imzML_visual.jl")
|
|||||||
|
|
||||||
@onbutton btnSearch begin
|
@onbutton btnSearch begin
|
||||||
full_route=pick_file(; filterlist="imzML,mzML")
|
full_route=pick_file(; filterlist="imzML,mzML")
|
||||||
|
msg=""
|
||||||
if full_route==""
|
if full_route==""
|
||||||
msg="No file selected"
|
msg="No file selected"
|
||||||
warning_msg=true
|
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
|
# Splitting the route with regex from imzml to mzml so the plotting can work
|
||||||
full_routeMz=replace(full_route, r"\.[^.]*$" => ".mzML")
|
full_routeMz=replace(full_route, r"\.[^.]*$" => ".mzML")
|
||||||
if isfile(full_routeMz)
|
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
|
btnSpectraDisable=false
|
||||||
SpectraEnabled=true
|
SpectraEnabled=true
|
||||||
|
btnStartDisable=false
|
||||||
|
|
||||||
|
fTime=time()
|
||||||
|
eTime=round(fTime-sTime,digits=3)
|
||||||
|
msg="Plot loaded in $(eTime) seconds"
|
||||||
else
|
else
|
||||||
# If there's no MzML file, we deny access again
|
# If there's no MzML file, we deny access again
|
||||||
btnSpectraDisable=true
|
btnSpectraDisable=true
|
||||||
@ -280,6 +297,11 @@ include("./julia_imzML_visual.jl")
|
|||||||
btnStartDisable=true
|
btnStartDisable=true
|
||||||
full_route=full_routeMz
|
full_route=full_routeMz
|
||||||
end
|
end
|
||||||
|
if endswith(full_route, "imzML")
|
||||||
|
btnStartDisable=false
|
||||||
|
end
|
||||||
|
if isfile(full_routeMz)
|
||||||
|
# Start the sum spectrum creation on loading
|
||||||
progressSpectraPlot=true
|
progressSpectraPlot=true
|
||||||
btnPlotDisable=true
|
btnPlotDisable=true
|
||||||
btnStartDisable=true
|
btnStartDisable=true
|
||||||
@ -289,18 +311,16 @@ include("./julia_imzML_visual.jl")
|
|||||||
selectedTab="tab2"
|
selectedTab="tab2"
|
||||||
progressSpectraPlot=false
|
progressSpectraPlot=false
|
||||||
btnPlotDisable=false
|
btnPlotDisable=false
|
||||||
if endswith(full_route, "imzML")
|
|
||||||
btnStartDisable=false
|
|
||||||
end
|
|
||||||
if isfile(full_routeMz)
|
|
||||||
# We enable coord search and spectra plot creation
|
# We enable coord search and spectra plot creation
|
||||||
btnSpectraDisable=false
|
btnSpectraDisable=false
|
||||||
SpectraEnabled=true
|
SpectraEnabled=true
|
||||||
end
|
|
||||||
fTime=time()
|
fTime=time()
|
||||||
eTime=round(fTime-sTime,digits=3)
|
eTime=round(fTime-sTime,digits=3)
|
||||||
msg="Plot loaded in $(eTime) seconds"
|
msg="Plot loaded in $(eTime) seconds"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
xCoord=0
|
xCoord=0
|
||||||
yCoord=0
|
yCoord=0
|
||||||
end
|
end
|
||||||
|
|||||||
10
app.jl.html
10
app.jl.html
@ -60,7 +60,7 @@
|
|||||||
label="Generate Spectra" icon="play_arrow">
|
label="Generate Spectra" icon="play_arrow">
|
||||||
<template v-slot:loading>
|
<template v-slot:loading>
|
||||||
<q-spinner-hourglass class="on-left" />
|
<q-spinner-hourglass class="on-left" />
|
||||||
Loading Plot
|
Loading plot
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<q-list>
|
<q-list>
|
||||||
@ -109,25 +109,25 @@
|
|||||||
label="Generate Plots" icon="play_arrow">
|
label="Generate Plots" icon="play_arrow">
|
||||||
<template v-slot:loading>
|
<template v-slot:loading>
|
||||||
<q-spinner-hourglass class="on-left" />
|
<q-spinner-hourglass class="on-left" />
|
||||||
Loading Plot
|
Loading plot
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item clickable v-close-popup v-on:click="imageCPlot=true">
|
<q-item clickable v-close-popup v-on:click="imageCPlot=true">
|
||||||
<q-item-section>
|
<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-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
|
||||||
<q-item clickable v-close-popup v-on:click="triqCPlot=true">
|
<q-item clickable v-close-popup v-on:click="triqCPlot=true">
|
||||||
<q-item-section>
|
<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-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
|
||||||
<q-item clickable v-close-popup v-on:click="image3dPlot=true">
|
<q-item clickable v-close-popup v-on:click="image3dPlot=true">
|
||||||
<q-item-section>
|
<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-section>
|
||||||
</q-item>
|
</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