Skip to content

Commit

Permalink
Update .R according to lintr failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Ruin committed Sep 24, 2024
1 parent 72540bc commit 73f2a73
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tools/mzxmlshaper/mzXMLShaper.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# R version 4.3.3
# Conversion tool mzXMLShaper.R (former cdf2mzml)
# Author: Quentin RUIN
# Creation: 25/04/2023
# Creation date: 25/04/2023
# Last updated: 09/09/2024

cat("\nJob starting time:\n", format(Sys.time(), "%a %d %b %Y %X"), "\n\n")
Expand Down Expand Up @@ -31,15 +31,11 @@ pks <- mzR::spectra(spectrum)
## Get the header
hdr <- mzR::header(spectrum)

if (outputfileformat == 'mzml')
{
writeMSData(pks, file = outputfilename, outformat = 'mzml', header = hdr)
}
if (outputfileformat=="mzml")
{writeMSData(pks, file = outputfilename, outformat = "mzml", header = hdr)}

if (outputfileformat == 'mzXml')
{
writeMSData(pks, file = outputfilename, outformat = 'mzxml', header = hdr)
}
if (outputfileformat=="mzXml")
{writeMSData(pks, file = outputfilename, outformat = "mzxml", header = hdr)}


cat("\n--------------------------------------------------------------------",
Expand Down

0 comments on commit 73f2a73

Please sign in to comment.