Skip to content

Commit

Permalink
Merge pull request #21 from jasenfinch/devel
Browse files Browse the repository at this point in the history
v1.0.7
  • Loading branch information
jasenfinch committed Jun 11, 2021
2 parents fd87eb7 + d6e4b44 commit 98813f7
Show file tree
Hide file tree
Showing 38 changed files with 79 additions and 64 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Expand Up @@ -63,12 +63,14 @@ jobs:
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
sudo apt install mono-xbuild
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran(c("rcmdcheck","goodpractice"))
install.packages('http://fgcz-ms.uzh.ch/~cpanse/rawrr_0.1.8.tar.gz',repos = NULL)
rawrr::installRawFileReaderDLLs()
rawrr::buildRawrrExe()
msconverteR::get_pwiz_container()
shell: Rscript {0}

Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
@@ -1,17 +1,17 @@
Package: grover
Title: Web API Framework for Mass Spectrometry Data Transfer
Version: 1.0.6
Version: 1.0.7
Authors@R:
person(given = "Jasen",
family = "Finch",
role = c("aut", "cre"),
email = "jsf9@aber.ac.uk")
Description: A web based API framework for hosting and interfacing a mass spectrometry raw data data repository. Transfer files, retrieve file information, convert raw mass spectromery data to .mzML format and retrieve sample information from .raw file headers.
biocViews: MassSpectrometry, Metabolomics
URL: https://jasenfinch.github.io/grover/
BugReports: https://github.com/jasenfinch/grover/issues
License: GPL-3
Encoding: UTF-8
LazyData: true
Imports: callr,
cli,
crayon,
Expand Down
8 changes: 7 additions & 1 deletion NEWS.md
@@ -1,8 +1,14 @@
# grover 1.0.7

* Added `biocViews` field to the DESCRIPTION to ensure the [`rawrr](https://bioconductor.org/packages/release/bioc/html/rawrr.html) Bioconductor dependency is installed automatically.

* Fixed [`grover::converFile`](https://jasenfinch.github.io/grover/reference/convert.html) error when more than two options are supplied to the `args` parameter.

# grover 1.0.6

* [`grover::converFile`](https://jasenfinch.github.io/grover/reference/convert.html) creates the output directory if it doesn't already exist.

* converted files now correctly zipped by [`grover::converFile`](https://jasenfinch.github.io/grover/reference/convert.html) to ensure they are readable by the [`mzR`](https://www.bioconductor.org/packages/release/bioc/html/mzR.html) package.
* Converted files now correctly zipped by [`grover::converFile`](https://jasenfinch.github.io/grover/reference/convert.html) to ensure they are readable by the [`mzR`](https://www.bioconductor.org/packages/release/bioc/html/mzR.html) package.

# grover 1.0.5

Expand Down
6 changes: 6 additions & 0 deletions R/client-conversion.R
Expand Up @@ -48,6 +48,12 @@ setMethod('convertFile',signature = 'GroverClient',
args <- ''
}

if (length(args) > 1) {
args <- args %>%
.[. != ''] %>%
str_c(collapse = ' ')
}

cmd <- str_c(cmd,args)

fileName <- str_split(file,'[.]')[[1]][1]
Expand Down
22 changes: 11 additions & 11 deletions R/host-conversion.R
Expand Up @@ -20,20 +20,20 @@ hostConvertFile <- function(auth,instrument,directory,file,args = NULL){
}

msconverteR::convert_files(files = stringr::str_c(host_repository,
instrument,
directory,
file,
sep = '/'),
outpath = host_temp,
msconvert_args = args,
docker_args = '--privileged')
instrument,
directory,
file,
sep = '/'),
outpath = host_temp,
msconvert_args = args,
docker_args = '--privileged')

out_file <- stringr::str_c(host_temp,
stringr::str_c(tools::file_path_sans_ext(file),
'.mzML'),
sep = '/')
stringr::str_c(tools::file_path_sans_ext(file),
'.mzML'),
sep = '/')

out_file <- readr::read_file(out_file)
out_file <- readr::read_file(out_file)

return(out_file)

Expand Down
3 changes: 0 additions & 3 deletions README.md
Expand Up @@ -21,9 +21,6 @@ The package functionality is platform independent with file conversion and sampl

### Installation

This package requires the `rawrr` package.
Details of how to install the latest version can be found [here](https://github.com/fgcz/rawrr/releases).

The `grover` package can be installed from GitHub using the following:

```
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/articles/client-usage.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/articles/hosting.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions docs/articles/introduction.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Expand Up @@ -5,5 +5,5 @@ articles:
client-usage: client-usage.html
hosting: hosting.html
introduction: introduction.html
last_built: 2021-05-09T11:32Z
last_built: 2021-06-11T15:22Z

2 changes: 1 addition & 1 deletion docs/reference/GroverClient-accessors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GroverClient-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GroverHost-accessors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GroverHost-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98813f7

Please sign in to comment.