Skip to content

Commit

Permalink
v1.2.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhang503 committed Jun 1, 2023
1 parent 55711a5 commit 2bb14b5
Show file tree
Hide file tree
Showing 22 changed files with 388 additions and 226 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: mzion
Type: Package
Title: Database Searches of Proteomic Mass-spectrometrirc Data
Version: 1.2.6.1
Version: 1.2.6.2
Authors@R:
person(given = "Qiang",
family = "Zhang",
Expand Down
6 changes: 3 additions & 3 deletions R/mgfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ load_mgfs <- function (out_path, mgf_path, min_mass = 200L, max_mass = 4500L,

delete_files(
out_path,
ignores = c("\\.[Rr]$", "\\.(mgf|MGF)$", "\\.xlsx$",
ignores = c("\\.[Rr]$", "\\.(mgf|MGF)$", "\\.mzML$", "\\.xlsx$",
"\\.xls$", "\\.csv$", "\\.txt$", "\\.tsv$",
"^mgf$", "^mgfs$", "Calls",
# in case of reprocessing after proteoQ
Expand Down Expand Up @@ -1339,8 +1339,8 @@ readmzML <- function (filepath = NULL, filelist = NULL,
# parallel here
files <- file.path(filepath, filelist)
sizes <- max(unlist(lapply(files, file.size)))/1024^3
# n_cores <- min(detect_cores(16L), floor((max_ram <- 32)/(sizes * 8)), len)
n_cores <- min(detect_cores(32L), floor((find_free_mem()/1024)/(sizes * 8)), len)
# n_cores <- min(detect_cores(32L), floor((find_free_mem()/1024)/(sizes * 8)), len)
n_cores <- min(detect_cores(32L), floor((find_free_mem()/1024)/(sizes * 8)) + 1L, len)
n_cores <- max(1L, n_cores)

if (n_cores == 1L) {
Expand Down
Loading

0 comments on commit 2bb14b5

Please sign in to comment.