Skip to content

Commit

Permalink
Merge pull request #25 from jasenfinch/devel
Browse files Browse the repository at this point in the history
v1.1.1
  • Loading branch information
jasenfinch committed Jan 18, 2023
2 parents 55f66fe + 846145b commit dcf5f12
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Expand Up @@ -18,8 +18,8 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
#- {os: macos-latest, r: 'release'}
#- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,6 +1,6 @@
Package: grover
Title: Web API Framework for Mass Spectrometry Data Transfer
Version: 1.1.0
Version: 1.1.1
Authors@R:
person(given = "Jasen",
family = "Finch",
Expand Down
8 changes: 6 additions & 2 deletions NEWS.md
@@ -1,8 +1,12 @@
# grover 1.1.1

* Ensure that [`grover::convertDirectory`](https://jasenfinch.github.io/grover/reference/convert.html) returns the file paths of the converted .mzML files for all the of the raw files in the specified directory.

# grover 1.1.0

* Added the `exclude` argument to [`convertDirectory`](https://jasenfinch.github.io/grover/reference/convert.html) and [`runInfo`](https://jasenfinch.github.io/grover/reference/info.html) to exclude raw files matching the specified patterns.
* Added the `exclude` argument to [`grover::convertDirectory`](https://jasenfinch.github.io/grover/reference/convert.html) and [`grover::runInfo`](https://jasenfinch.github.io/grover/reference/info.html) to exclude raw files matching the specified patterns.

* [`runInfo`](https://jasenfinch.github.io/grover/reference/info.html) now collates the sample information client-side and so the `time_out` argument has been removed.
* [`grover::runInfo`](https://jasenfinch.github.io/grover/reference/info.html) now collates the sample information client-side and so the `time_out` argument has been removed.

* The [`grover::groverAPI`](https://jasenfinch.github.io/grover/reference/groverAPI.html) `log_dir` and `temp_dir` argument directories are now created recursively if they do not already exist.

Expand Down
10 changes: 9 additions & 1 deletion R/client-conversion.R
Expand Up @@ -188,6 +188,14 @@ setMethod('convertDirectory',signature = 'GroverClient',
return(res)
})

converted_files <- list.files(outDir,
full.names = TRUE,
pattern = '.mzML') %>%
{
.[file_path_sans_ext(basename(.),compression = zip) %in%
file_path_sans_ext(raw_files)]
}

message()

failed <- files[is.na(results)]
Expand All @@ -197,7 +205,7 @@ setMethod('convertDirectory',signature = 'GroverClient',
str_c(failed,collapse = ', ')),call. = FALSE)
}

return(results)
return(converted_files)
})

#' @rdname convert
Expand Down

0 comments on commit dcf5f12

Please sign in to comment.