Minor fixes

This commit is contained in:
Pixelguy14 2025-01-23 12:45:48 -06:00
parent 09e4a015e0
commit b660d7defb
4 changed files with 30 additions and 23 deletions

6
.gitignore vendored
View File

@ -1,8 +1,8 @@
public/* public/*
!public/css/ !public/css/
!public/css/autogenerated.css !public/css/autogenerated.css
!public/css/biotech_100dp_1B1F3B.png
!public/css/LABI_logo.png !public/css/LABI_logo.png
log/* log/*
ongoing_tasks.txt
oldREADME.md
Manifest.toml

View File

@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised # This file is machine-generated - editing it directly is not advised
julia_version = "1.11.2" julia_version = "1.11.3"
manifest_format = "2.0" manifest_format = "2.0"
project_hash = "e1be01554a547da63b1504fb440ab6cc4855bc9d" project_hash = "e1be01554a547da63b1504fb440ab6cc4855bc9d"
@ -814,9 +814,9 @@ version = "0.5.0"
[[deps.HypergeometricFunctions]] [[deps.HypergeometricFunctions]]
deps = ["LinearAlgebra", "OpenLibm_jll", "SpecialFunctions"] deps = ["LinearAlgebra", "OpenLibm_jll", "SpecialFunctions"]
git-tree-sha1 = "2bd56245074fab4015b9174f24ceba8293209053" git-tree-sha1 = "4f0a6a9f57c0d0cc7590a6e47c0f641814917f2a"
uuid = "34004b35-14d8-5ef3-9330-4cdb6864b03a" uuid = "34004b35-14d8-5ef3-9330-4cdb6864b03a"
version = "0.3.27" version = "0.3.26"
[[deps.HypertextLiteral]] [[deps.HypertextLiteral]]
deps = ["Tricks"] deps = ["Tricks"]
@ -1350,9 +1350,9 @@ version = "0.1.4"
[[deps.MKL_jll]] [[deps.MKL_jll]]
deps = ["Artifacts", "IntelOpenMP_jll", "JLLWrappers", "LazyArtifacts", "Libdl", "oneTBB_jll"] deps = ["Artifacts", "IntelOpenMP_jll", "JLLWrappers", "LazyArtifacts", "Libdl", "oneTBB_jll"]
git-tree-sha1 = "5de60bc6cb3899cd318d80d627560fae2e2d99ae" git-tree-sha1 = "ed4097130e3dd3721814b5f277da72f48905e80c"
uuid = "856f044c-d86e-5d09-b602-aeab76dc8ba7" uuid = "856f044c-d86e-5d09-b602-aeab76dc8ba7"
version = "2025.0.1+1" version = "2025.0.1+0"
[[deps.MacroTools]] [[deps.MacroTools]]
git-tree-sha1 = "72aebe0b5051e5143a079a4685a46da330a40472" git-tree-sha1 = "72aebe0b5051e5143a079a4685a46da330a40472"
@ -1459,9 +1459,9 @@ version = "1.2.1"
[[deps.NaNMath]] [[deps.NaNMath]]
deps = ["OpenLibm_jll"] deps = ["OpenLibm_jll"]
git-tree-sha1 = "fe891aea7ccd23897520db7f16931212454e277e" git-tree-sha1 = "dbad50672562ce422a406d172fb19fc1f0166f06"
uuid = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3" uuid = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
version = "1.1.1" version = "1.1.0"
[[deps.NativeFileDialog]] [[deps.NativeFileDialog]]
deps = ["FilePathsBase", "NativeFileDialog_jll"] deps = ["FilePathsBase", "NativeFileDialog_jll"]

View File

@ -1,5 +1,5 @@
# Julia_msi_GUI<br /> # Julia_msi_GUI<br />
A Graphical User Interface for IMS in Julia: https://github.com/CINVESTAV-LABI/julia_mzML_imzML A Graphical User Interface for MSI in Julia: https://github.com/CINVESTAV-LABI/julia_mzML_imzML
## Local Installation ## Local Installation
1. Make sure you have Julia installed, if not, follow the next installation guide for [juliaup](https://github.com/JuliaLang/juliaup) (recommended) or [julia](https://julialang.org/downloads/platform/) 1. Make sure you have Julia installed, if not, follow the next installation guide for [juliaup](https://github.com/JuliaLang/juliaup) (recommended) or [julia](https://julialang.org/downloads/platform/)
@ -10,15 +10,21 @@ A Graphical User Interface for IMS in Julia: https://github.com/CINVESTAV-LABI/j
## Load User Interface ## Load User Interface
1. Set working directory to Julia_msi_GUI (this repository) in your terminal using: 1. Set working directory to Julia_msi_GUI (this repository) in your terminal using:
linux:
``` ```
cd PathToRepository/Julia_msi_GUI-main cd PathToRepository/Julia_msi_GUI-main
``` ```
windows/mac:
```
cd PathToRepository\Julia_msi_GUI-main
```
2. Launch the Julia project in your terminal using: 2. Launch the Julia project in your terminal using:
``` ```
julia --project=. start_MSI_GUI.jl julia --project=. start_MSI_GUI.jl
``` ```
3. Alternatively, you can open a terminal in the path of the repository and run the command and skip the next step: 3. After the script has finished loading, it should open a page (http://127.0.0.1:1481/) in your browser with the web app running.
```
julia --project=. start_MSI_GUI.jl Additional notes:
``` After the first boot initializes the packages in your computer, subsequent uses of the app should not take longer to load.
4. After the script has finished loading, it should open a page (http://127.0.0.1:1481/) in your browser with the web app running. Recomended system requirements: 4 core processor, 8 GB ram
Minimum system requirements: 2 core processor, 8 GB ram (long loading times)

3
app.jl
View File

@ -231,7 +231,8 @@ end
#println("Selected file path: ", full_route) #println("Selected file path: ", full_route)
btnStartDisable=false btnStartDisable=false
btnPlotDisable=false btnPlotDisable=false
full_routeMz=split( full_route, "." )[1] * ".mzML" # Splitting the route 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")
if isfile(full_routeMz) if isfile(full_routeMz)
# We enable coord search and spectra plot creation # We enable coord search and spectra plot creation
btnSpectraDisable=false btnSpectraDisable=false