[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #511 from sneumann/patch-1
Browse files Browse the repository at this point in the history
Avoid reading in mzTab twice
  • Loading branch information
lgatto committed May 5, 2020
2 parents f7da589 + 463e91e commit f79847a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/MzTab.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ comments <- function(x) x@Comments
MzTab <- function(file) {
file <- file[1]
lines <- readLines(file)
lines <- lines[-grep("^\\s*$", readLines(file))]
lines <- lines[-grep("^\\s*$", lines)]
lines <- lines[nzchar(lines)]

## Split on the first characters, make sure headers stay in
Expand Down

0 comments on commit f79847a

Please sign in to comment.