Skip to content

Commit

Permalink
Prepare for Bioconductor submission
Browse files Browse the repository at this point in the history
  • Loading branch information
jorainer committed Aug 21, 2024
1 parent e5a319c commit f46bfe0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
matrix:
config:
- { os: ubuntu-latest, r: 'devel', bioc: 'devel', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.4', bioc: '3.19'}
- { os: windows-latest, r: '4.4', bioc: '3.19'}
- { os: macOS-latest, r: '4.4', bioc: 'devel'}
- { os: windows-latest, r: '4.4', bioc: 'devel'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: SpectraQL
Title: MassQL support for Spectra
Version: 0.98.6
Version: 0.99.0
Description: The Mass Spec Query Language (MassQL) is a domain-specific
language enabling to express a query and retrieve mass spectrometry (MS)
data in a more natural and understandable way for MS users. It is inspired
Expand All @@ -21,7 +21,7 @@ Authors@R: c(person(given = "Johannes", family = "Rainer",
comment = c(ORCID = "0000-0001-7406-4443"))
)
Depends:
R (>= 4.1.0),
R (>= 4.4.0),
ProtGenerics (>= 1.25.1)
Imports:
Spectra (>= 1.5.6),
Expand Down
2 changes: 1 addition & 1 deletion R/AllGenerics.R
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
setGeneric("query", function(x, ...)
standardGeneric("query"))
standardGeneric("query"))
18 changes: 8 additions & 10 deletions vignettes/SpectraQL.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ for MS data represented by `Spectra` objects defined in Bioconductor's

# Installation

Until added to Bioconductor, the package can be installed with
`devtools::install_github("RforMassSpectrometry/SpectraQL")`.

The package can be installed with the `BiocManager` package. To
install `BiocManager` use `install.packages("BiocManager")` and, after that,
`BiocManager::install("SpectraQL")` to install this package.
Expand Down Expand Up @@ -309,9 +306,10 @@ We can also combine that with `"QUERY"` to restrict to a certain retention time
range to generate an extracted ion chromatogram (XIC).

```{r}
ic <- query(dda,
paste0("query scansum(ms1data) where rtmin = 235 and rtmax = 250",
" filter ms1mz = 219.095:tolerancemz=0.1"))
ic <- query(
dda,
paste0("query scansum(ms1data) where rtmin = 235 and rtmax = 250",
" filter ms1mz = 219.095:tolerancemz=0.1"))
plot(ic, type = "l", xlab = "scan index")
```

Expand All @@ -320,10 +318,10 @@ following combination of function calls:

```{r}
res <- dda |>
filterMsLevel(1L) |>
filterRt(c(235, 250)) |>
filterMzValues(219.095, tolerance = 0.1) |>
ionCount()
filterMsLevel(1L) |>
filterRt(c(235, 250)) |>
filterMzValues(219.095, tolerance = 0.1) |>
ionCount()
plot(res, type = "l", xlab = "scan index")
```
Expand Down

0 comments on commit f46bfe0

Please sign in to comment.