Fixed the functionality of plot for the imzML file
It now plots correctly
This commit is contained in:
parent
642d2044cd
commit
e5824dd858
5
app.jl
5
app.jl
@ -96,6 +96,7 @@ using julia_mzML_imzML
|
|||||||
if isfile(full_route) && Nmass > 0 && Tol > 0 && Tol <= 1
|
if isfile(full_route) && Nmass > 0 && Tol > 0 && Tol <= 1
|
||||||
msg = "File exists, Nmass=$(Nmass) Tol=$(Tol). Please do not press the start button until confirmation"
|
msg = "File exists, Nmass=$(Nmass) Tol=$(Tol). Please do not press the start button until confirmation"
|
||||||
spectra = LoadImzml(full_route)
|
spectra = LoadImzml(full_route)
|
||||||
|
spectraMz = LoadMzml(full_route)
|
||||||
msg = "File loaded. Please do not press the start button until confirmation"
|
msg = "File loaded. Please do not press the start button until confirmation"
|
||||||
slice = GetSlice(spectra, Nmass, Tol)
|
slice = GetSlice(spectra, Nmass, Tol)
|
||||||
if triqProb != 0 # if we have TrIQ
|
if triqProb != 0 # if we have TrIQ
|
||||||
@ -118,7 +119,7 @@ using julia_mzML_imzML
|
|||||||
msgimg = "image with the Nmass of $(Int(Nmass))"
|
msgimg = "image with the Nmass of $(Int(Nmass))"
|
||||||
end
|
end
|
||||||
msg = "The file has been created inside the 'public' folder of the app"
|
msg = "The file has been created inside the 'public' folder of the app"
|
||||||
traceSpectra = PlotlyBase.scatter(x = spectra[1, 4], y = spectra[2, 4], mode="lines+markers")
|
traceSpectra = PlotlyBase.scatter(x = spectraMz[1, 1], y = spectraMz[2, 1], mode="lines+markers")
|
||||||
plotdata = [traceSpectra] # we add the data of spectra to the plot
|
plotdata = [traceSpectra] # we add the data of spectra to the plot
|
||||||
else
|
else
|
||||||
msg = "File does not exist or a parameter was not well inputted"
|
msg = "File does not exist or a parameter was not well inputted"
|
||||||
@ -191,4 +192,4 @@ This is useful for storing data that is unique to each user session but is not n
|
|||||||
in the UI.
|
in the UI.
|
||||||
@private table = DataFrame(a = 1:10, b = 10:19, c = 20:29)
|
@private table = DataFrame(a = 1:10, b = 10:19, c = 20:29)
|
||||||
|
|
||||||
=#
|
=#
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user