Add files via upload

This commit is contained in:
Pixelguy14 2024-07-15 14:31:18 -06:00 committed by GitHub
parent f5b26c1d6c
commit 12e949264f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 58 additions and 12 deletions

View File

@ -36,7 +36,8 @@ end
# variables must be initialized with constant values, or variables defined outside of the @app block # variables must be initialized with constant values, or variables defined outside of the @app block
@out test = "/wp.jpeg" @out test = "/wp.jpeg"
#mkdir("new_folder") #mkdir("new_folder")
@in file_route = "None" @in file_route = ""
@in file_name = ""
@out warning_fr = "" @out warning_fr = ""
@in Nmass = 0.0 @in Nmass = 0.0
@in Tol = 0.0 @in Tol = 0.0
@ -47,6 +48,7 @@ end
@in ImgPlus = false @in ImgPlus = false
@in ImgMinus = false @in ImgMinus = false
@in msg = "" @in msg = ""
@out full_route = ""
# == Reactive handlers == # == Reactive handlers ==
# reactive handlers watch a variable and execute a block of code when # reactive handlers watch a variable and execute a block of code when
@ -56,9 +58,10 @@ end
triqProb = 0.0 triqProb = 0.0
end end
end end
@onchange file_route begin @onchange file_name begin
if contains_word(file_route, ".imzML") if contains_word(file_name, ".imzML")
warning_fr = "" warning_fr = ""
full_route = joinpath( file_route, file_name )
else else
warning_fr = "is not an imzML file" warning_fr = "is not an imzML file"
end end
@ -74,22 +77,23 @@ end
#SaveBitmap( "$(Nmass).bmp", #SaveBitmap( "$(Nmass).bmp",
#IntQuant( slice ), #IntQuant( slice ),
#ViridisPalette ) #ViridisPalette )
#samplesDir = "/home/julian/Documentos/Cinvestav_2024/Web/Archivos IMZML" #samplesDir = "/home/julian/Documentos/Cinvestav_2024/Web/Archivos IMZML"
samplesDir = "/home/julian/Documentos/Cinvestav_2024/Web/Julia/JuliaIMZML_GUI/public/Files" #samplesDir = "/home/julian/Documentos/Cinvestav_2024/Web/Julia/JuliaIMZML_GUI/public/Files"
fileName = "royaimg.imzML" #fileName = "royaimg.imzML"
if isfile(joinpath( samplesDir, fileName )) if isfile(full_route)
msg="File exists, Nmass=$(Nmass) Tol=$(Tol)" msg="File exists, Nmass=$(Nmass) Tol=$(Tol)"
else else
msg="File does not exist" msg="File does not exist"
end end
spectra = LoadImzml(joinpath( samplesDir, fileName )) spectra = LoadImzml(full_route)
slice = getSlice(spectra, Nmass, Tol) slice = getSlice(spectra, Nmass, Tol)
if triqProb != 0 if triqProb != 0
SaveBitmap( joinpath( samplesDir, "TrIQ_$(Nmass).bmp" ), SaveBitmap( joinpath( samplesDir, "TrIQ_$(Nmass).bmp" ),
TrIQ( slice, Nmass, triqProb ), TrIQ( slice, Nmass, triqProb ),
ViridisPalette ) ViridisPalette )
else else
SaveBitmap( joinpath( samplesDir, "$(Nmass).bmp" ), SaveBitmap( joinpath( file_route, "$(Nmass).bmp" ),
IntQuant( slice ), IntQuant( slice ),
ViridisPalette ) ViridisPalette )
end end
@ -99,7 +103,7 @@ end
while !isfile("/$(indeximg).jpeg") && indeximg > 0 && indeximg <999 while !isfile("/$(indeximg).jpeg") && indeximg > 0 && indeximg <999
indeximg-=1 indeximg-=1
end end
if(indeximg == 0) if(indeximg <= 0)
indeximg = Nmass indeximg = Nmass
end end
test = "/$(indeximg).jpeg" test = "/$(indeximg).jpeg"
@ -110,7 +114,7 @@ end
while !isfile("/$(indeximg).jpeg") && indeximg > 0 && indeximg <999 while !isfile("/$(indeximg).jpeg") && indeximg > 0 && indeximg <999
indeximg+=1 indeximg+=1
end end
if(indeximg == 999) if(indeximg >= 999)
indeximg = Nmass indeximg = Nmass
end end
test = "/$(indeximg).jpeg" test = "/$(indeximg).jpeg"

View File

@ -8,8 +8,9 @@
<div class="row"> <div class="row">
<div class="st-col col-12 col-sm st-module"> <div class="st-col col-12 col-sm st-module">
<!--<q-file v-model="file_route" filled="" label="Select your imzML file" accept=".txt"></q-file>--> <!--<q-file v-model="file_route" filled="" label="Select your imzML file" accept=".txt"></q-file>-->
<q-input id="ijii1" v-model="file_route" :dense="true" label="Insert the full route of your imzML file"></q-input> <q-input id="ijii1" v-model="file_route" :dense="true" label="Insert the full route to your imzML file"></q-input>
<p id="i7brk">route of file: {{file_route}} {{warning_fr}}</p> <q-input id="ijii1-2" v-model="file_name" :dense="true" label="Insert the name of your imzML file"></q-input>
<p id="i7brk">full route: {{full_route}} {{warning_fr}}</p>
</div> </div>
</div> </div>
<div class="row"> <div class="row">

View File

@ -115,3 +115,23 @@
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22 └ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-13 16:33:46 Autoreloading ┌ Info: 2024-07-13 16:33:46 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22 └ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-13 16:36:09 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-13 16:36:09 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-13 16:36:12 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-13 16:36:12 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-13 16:36:41 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-13 16:36:41 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Warning: 2024-07-13 16:37:20 SystemError("opening file \"/home/julian/Documentos/Cinvestav_2024/Web/Julia/JuliaIMZML_GUI/public/Files/royaimg.ibd\"", 2, nothing)
└ @ Stipple /home/julian/.julia/packages/Stipple/Hr6Qa/src/Stipple.jl:999
┌ Warning: 2024-07-13 16:39:00 SystemError("opening file \"/home/julian/Documentos/Cinvestav_2024/Web/Julia/JuliaIMZML_GUI/public/Files/royaimg.ibd\"", 2, nothing)
└ @ Stipple /home/julian/.julia/packages/Stipple/Hr6Qa/src/Stipple.jl:999
┌ Info: 2024-07-13 16:52:38 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-13 16:52:38 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22

View File

@ -0,0 +1,21 @@
┌ Info: 2024-07-15 13:50:14 Watching ["/home/julian/Documentos/Cinvestav_2024/Web/Julia/JuliaIMZML_GUI"]
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:19
┌ Info: 2024-07-15 13:50:17 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-15 13:50:39 Watching ["/home/julian/Documentos/Cinvestav_2024/Web/Julia/JuliaIMZML_GUI"]
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:19
┌ Info: 2024-07-15 13:50:39 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-15 13:50:42
│ Web Server starting at http://0.0.0.0:9101?CHANNEL__=KPZEIPZCZYWEZGSXPTDUGQJOKUUJFKKD
└ @ Genie.Server /home/julian/.julia/packages/Genie/uliWf/src/Server.jl:182
┌ Info: 2024-07-15 13:50:43 Listening on: 0.0.0.0:9101, thread id: 1
└ @ HTTP.Servers /home/julian/.julia/packages/HTTP/sJD5V/src/Servers.jl:382
┌ Info: 2024-07-15 13:52:23 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-15 13:52:23 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-15 13:52:25 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22
┌ Info: 2024-07-15 13:52:25 Autoreloading
└ @ GenieAutoReload /home/julian/.julia/packages/GenieAutoReload/ESvsh/src/GenieAutoReload.jl:22