Skip to content

Commit

Permalink
Merge pull request #26 from wkumler/version_1.3.2
Browse files Browse the repository at this point in the history
Version 1.3.4 now on CRAN
  • Loading branch information
wkumler authored Dec 13, 2023
2 parents 7101bd5 + 07e3bc3 commit fde5a5c
Show file tree
Hide file tree
Showing 22 changed files with 792 additions and 217 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: RaMS
Type: Package
Title: R Access to Mass-Spec Data
Version: 1.3.3
Version: 1.3.4
Authors@R: c(
person(given = "William", family = "Kumler", email = "[email protected]",
role = c("aut", "cre", "cph")),
Expand Down
6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

## Resubmission

This is a resubmission. In this version I have set data.table to use only two
threads to avoid CPU time > 2.5 times elapsed time in the vignettes


## Resubmission (prior)

This is a resubmission. In this version I have reduced the example runtimes to
below 5s (I hope) for tests and examples and set data.table to use only two
threads to avoid CPU time > 2.5 times elapsed time
Expand Down
11 changes: 6 additions & 5 deletions doc/Intro-to-RaMS.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## ---- include = FALSE---------------------------------------------------------
## ----include = FALSE----------------------------------------------------------
options(rmarkdown.html_vignette.check_title = FALSE)
options(tidyverse.quiet = TRUE)
data.table::setDTthreads(2)

knitr::opts_chunk$set(
collapse = TRUE,
Expand Down Expand Up @@ -142,7 +143,7 @@ msdata$MS2 <- mutate(msdata$MS2, neutral_loss=premz-fragmz) %>%
msdata$MS2[neutral_loss%between%pmppm(homarine_neutral_loss, ppm = 5)] %>%
arrange(desc(int)) %>% head() %>% knitr::kable()

## ---- fig.height=3------------------------------------------------------------
## ----fig.height=3-------------------------------------------------------------
chrom_file <- system.file("extdata", "wk_chrom.mzML.gz", package = "RaMS")
msdata_chroms <- grabMSdata(chrom_file, verbosity = 0, grab_what = "chroms")
given_chrom <- msdata_chroms$chroms[chrom_type=="SRM iletter1"]
Expand Down Expand Up @@ -192,7 +193,7 @@ as.numeric(object.size(all_data)/object.size(small_data))
## ----verbosedemo--------------------------------------------------------------
all_data <- grabMSdata(data_files, grab_what = c("MS1", "MS2"), verbosity = 2)

## ---- eval=FALSE--------------------------------------------------------------
## ----eval=FALSE---------------------------------------------------------------
# ## Not run:
# library(parallel)
# cl <- makeCluster(getOption("cl.cores", detectCores()-1))
Expand All @@ -206,12 +207,12 @@ all_data <- grabMSdata(data_files, grab_what = c("MS1", "MS2"), verbosity = 2)
# }
# stopImplicitCluster()

## ---- eval=FALSE--------------------------------------------------------------
## ----eval=FALSE---------------------------------------------------------------
# ## Not run:
# data_nodes <- xml2::xml_find_all(mzML_nodes, xpath="//d1:precursorMz")
# raw_data <- xml2::xml_attr(data_nodes, "value")

## ---- eval=FALSE--------------------------------------------------------------
## ----eval=FALSE---------------------------------------------------------------
# ## Not run:
# decoded_binary <- base64enc::base64decode(binary)
# raw_binary <- as.raw(decoded_binary)
Expand Down
1 change: 1 addition & 0 deletions doc/Intro-to-RaMS.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vignette: >
```{r, include = FALSE}
options(rmarkdown.html_vignette.check_title = FALSE)
options(tidyverse.quiet = TRUE)
data.table::setDTthreads(2)
knitr::opts_chunk$set(
collapse = TRUE,
Expand Down
50 changes: 25 additions & 25 deletions doc/Intro-to-RaMS.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions doc/Intro-to-tmzML.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## ----setup, include = FALSE---------------------------------------------------
options(rmarkdown.html_vignette.check_title = FALSE)
options(tidyverse.quiet = TRUE)
data.table::setDTthreads(2)

knitr::opts_chunk$set(
collapse = TRUE,
Expand Down
1 change: 1 addition & 0 deletions doc/Intro-to-tmzML.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vignette: >
```{r setup, include = FALSE}
options(rmarkdown.html_vignette.check_title = FALSE)
options(tidyverse.quiet = TRUE)
data.table::setDTthreads(2)
knitr::opts_chunk$set(
collapse = TRUE,
Expand Down
35 changes: 12 additions & 23 deletions doc/Intro-to-tmzML.html
Original file line number Diff line number Diff line change
Expand Up @@ -462,27 +462,16 @@ <h2>Getting started with tmzML documents</h2>
<span id="cb5-2"><a href="#cb5-2" tabindex="-1"></a><span class="fu">ggplot</span>(ms_data_table) <span class="sc">+</span> <span class="fu">geom_line</span>(<span class="fu">aes</span>(<span class="at">x=</span>rt, <span class="at">y=</span>int, <span class="at">color=</span>filename)) <span class="sc">+</span> <span class="fu">xlim</span>(<span class="dv">8</span>, <span class="fl">9.5</span>)</span></code></pre></div>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAEgCAMAAAA0bOSjAAAA9lBMVEUAAAAAADoAAGYAOpAAZrYAujgzMzM6AAA6ADo6AGY6OpA6ZmY6ZpA6ZrY6kNtNTU1NTW5NTY5NbqtNjshhnP9mAABmADpmOjpmOpBmZjpmZmZmZrZmtv9uTU1uTW5uTY5ubqtuq8huq+SOTU2OTW6OTY6OyP+QOgCQOjqQOmaQZpCQkDqQkGaQtpCQ27aQ2/+rbk2rbm6rbo6ryKur5P+2ZgC2Zjq2tma225C22/+2/9u2///Ijk3I///bkDrbkGbb/7bb///kq27k///r6+vy8vL4dm3/tmb/yI7/25D/27b/29v/5Kv//7b//8j//9v//+T///+idKXCAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAVB0lEQVR4nO2dC3vbthWGlcTKZRcrSeVu69w0SxOl3Zraae1dWjubE0W2Nt/4///MCPBOAiRAHoA45vc+T00ZIk/Qw/MKoGhBswiACTMbuwMAjAkEAJMGAoBJAwHApIEAYNJAADBp6AVYq9G194M0GrpGGYy8oNwCAdA12mDkBeUWCICu0QYjLyi3QAB0jTYYeUG5BQKga7TByAvKLRAAXaMNRl5QboEA6BptMPKCcgsEQNdog5EXlFtwIwxMGowA6BptMPKCcgsEQNdog5EXlFsggFWwOWk0z8EggAIIYBNsDg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nXLl8chfV6JucZT0WHgsta0bXgstYL51OgOEsX8kopvNeyvGuSoGa08ZXmX94HOQIUXZMElbU+uBageAULbjZbe3EN7VQGeuUkSLomCS1r1vgbAaprRwRA0TWhwu1PAVWZvDyRuQoua0XXgstaL5xfA1wsFvGMUbyIBfeOdtG1j/JRQMRdi3MVatbSrgWXtT7gTjCYNBAATBoIACYNBACTBgKASQMBwKSBAOT8919j9wCYAwGo2T4+GLsLwBwIQA0EYAUEIGT75G8zwe7YHQHGQABCto92MAIwAwIQsn20DwGYAQEIkbUPAVgBAQiBAPyAAIRAAH5AAEJk7V/t7Y/dD2AOBCAkefE/nu2M3RFgDAQAkwYCgEkDAcCkgQBg0kAAMGkgAJg0EABMGggAJg0EAJMGAoBJ839vBDMAUf5sHwAAAABJRU5ErkJggg==" width="80%" style="display: block; margin: auto;" /></p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb6-1"><a href="#cb6-1" tabindex="-1"></a><span class="fu">library</span>(dplyr)</span>
<span id="cb6-2"><a href="#cb6-2" tabindex="-1"></a><span class="co">#&gt; </span></span>
<span id="cb6-3"><a href="#cb6-3" tabindex="-1"></a><span class="co">#&gt; Attaching package: &#39;dplyr&#39;</span></span>
<span id="cb6-4"><a href="#cb6-4" tabindex="-1"></a><span class="co">#&gt; The following object is masked from &#39;package:RaMS&#39;:</span></span>
<span id="cb6-5"><a href="#cb6-5" tabindex="-1"></a><span class="co">#&gt; </span></span>
<span id="cb6-6"><a href="#cb6-6" tabindex="-1"></a><span class="co">#&gt; between</span></span>
<span id="cb6-7"><a href="#cb6-7" tabindex="-1"></a><span class="co">#&gt; The following objects are masked from &#39;package:stats&#39;:</span></span>
<span id="cb6-8"><a href="#cb6-8" tabindex="-1"></a><span class="co">#&gt; </span></span>
<span id="cb6-9"><a href="#cb6-9" tabindex="-1"></a><span class="co">#&gt; filter, lag</span></span>
<span id="cb6-10"><a href="#cb6-10" tabindex="-1"></a><span class="co">#&gt; The following objects are masked from &#39;package:base&#39;:</span></span>
<span id="cb6-11"><a href="#cb6-11" tabindex="-1"></a><span class="co">#&gt; </span></span>
<span id="cb6-12"><a href="#cb6-12" tabindex="-1"></a><span class="co">#&gt; intersect, setdiff, setequal, union</span></span>
<span id="cb6-13"><a href="#cb6-13" tabindex="-1"></a>ms_data_table <span class="sc">%&gt;%</span></span>
<span id="cb6-14"><a href="#cb6-14" tabindex="-1"></a> <span class="fu">filter</span>(rt<span class="sc">%between%</span><span class="fu">c</span>(<span class="fl">8.4</span>, <span class="fl">8.9</span>)) <span class="sc">%&gt;%</span></span>
<span id="cb6-15"><a href="#cb6-15" tabindex="-1"></a> <span class="fu">group_by</span>(filename) <span class="sc">%&gt;%</span></span>
<span id="cb6-16"><a href="#cb6-16" tabindex="-1"></a> <span class="fu">summarise</span>(<span class="at">area=</span><span class="fu">sum</span>(int))</span>
<span id="cb6-17"><a href="#cb6-17" tabindex="-1"></a><span class="co">#&gt; # A tibble: 3 × 2</span></span>
<span id="cb6-18"><a href="#cb6-18" tabindex="-1"></a><span class="co">#&gt; filename area</span></span>
<span id="cb6-19"><a href="#cb6-19" tabindex="-1"></a><span class="co">#&gt; &lt;chr&gt; &lt;dbl&gt;</span></span>
<span id="cb6-20"><a href="#cb6-20" tabindex="-1"></a><span class="co">#&gt; 1 LB12HL_AB.tmzML 13057831.</span></span>
<span id="cb6-21"><a href="#cb6-21" tabindex="-1"></a><span class="co">#&gt; 2 LB12HL_CD.tmzML 24925878.</span></span>
<span id="cb6-22"><a href="#cb6-22" tabindex="-1"></a><span class="co">#&gt; 3 LB12HL_EF.tmzML 21913457.</span></span></code></pre></div>
<span id="cb6-2"><a href="#cb6-2" tabindex="-1"></a>ms_data_table <span class="sc">%&gt;%</span></span>
<span id="cb6-3"><a href="#cb6-3" tabindex="-1"></a> <span class="fu">filter</span>(rt<span class="sc">%between%</span><span class="fu">c</span>(<span class="fl">8.4</span>, <span class="fl">8.9</span>)) <span class="sc">%&gt;%</span></span>
<span id="cb6-4"><a href="#cb6-4" tabindex="-1"></a> <span class="fu">group_by</span>(filename) <span class="sc">%&gt;%</span></span>
<span id="cb6-5"><a href="#cb6-5" tabindex="-1"></a> <span class="fu">summarise</span>(<span class="at">area=</span><span class="fu">sum</span>(int))</span>
<span id="cb6-6"><a href="#cb6-6" tabindex="-1"></a><span class="co">#&gt; # A tibble: 3 × 2</span></span>
<span id="cb6-7"><a href="#cb6-7" tabindex="-1"></a><span class="co">#&gt; filename area</span></span>
<span id="cb6-8"><a href="#cb6-8" tabindex="-1"></a><span class="co">#&gt; &lt;chr&gt; &lt;dbl&gt;</span></span>
<span id="cb6-9"><a href="#cb6-9" tabindex="-1"></a><span class="co">#&gt; 1 LB12HL_AB.tmzML 13057831.</span></span>
<span id="cb6-10"><a href="#cb6-10" tabindex="-1"></a><span class="co">#&gt; 2 LB12HL_CD.tmzML 24925878.</span></span>
<span id="cb6-11"><a href="#cb6-11" tabindex="-1"></a><span class="co">#&gt; 3 LB12HL_EF.tmzML 21913457.</span></span></code></pre></div>
</div>
<div id="why-not-tmzml" class="section level2">
<h2>Why not tmzML?</h2>
Expand All @@ -509,7 +498,7 @@ <h2>Why not tmzML?</h2>
<span id="cb8-4"><a href="#cb8-4" tabindex="-1"></a><span class="co">#&gt; $ MS2 : NULL</span></span>
<span id="cb8-5"><a href="#cb8-5" tabindex="-1"></a><span class="co">#&gt; $ connection:List of 3</span></span>
<span id="cb8-6"><a href="#cb8-6" tabindex="-1"></a><span class="co">#&gt; ..$ files : Named chr [1:3] &quot;tmzMLs/LB12HL_AB.tmzML&quot; &quot;tmzMLs/LB12HL_CD.tmzML&quot; &quot;tmzMLs/LB12HL_EF.tmzML&quot;</span></span>
<span id="cb8-7"><a href="#cb8-7" tabindex="-1"></a><span class="co">#&gt; .. ..- attr(*, &quot;names&quot;)= chr [1:3] &quot;C:/Users/willi/AppData/Local/R/win-library/4.3/RaMS/extdata/LB12HL_AB.mzML.gz&quot; &quot;C:/Users/willi/AppData/Local/R/win-library/4.3/RaMS/extdata/LB12HL_CD.mzML.gz&quot; &quot;C:/Users/willi/AppData/Local/R/win-library/4.3/RaMS/extdata/LB12HL_EF.mzML.gz&quot;</span></span>
<span id="cb8-7"><a href="#cb8-7" tabindex="-1"></a><span class="co">#&gt; .. ..- attr(*, &quot;names&quot;)= chr [1:3] &quot;C:/Users/willi/AppData/Local/Temp/RtmpQ9wT8y/temp_libpath49a055ab1e9b/RaMS/extdata/LB12HL_AB.mzML.gz&quot; &quot;C:/Users/willi/AppData/Local/Temp/RtmpQ9wT8y/temp_libpath49a055ab1e9b/RaMS/extdata/LB12HL_CD.mzML.gz&quot; &quot;C:/Users/willi/AppData/Local/Temp/RtmpQ9wT8y/temp_libpath49a055ab1e9b/RaMS/extdata/LB12HL_EF.mzML.gz&quot;</span></span>
<span id="cb8-8"><a href="#cb8-8" tabindex="-1"></a><span class="co">#&gt; ..$ grab_what: chr [1:2] &quot;MS1&quot; &quot;MS2&quot;</span></span>
<span id="cb8-9"><a href="#cb8-9" tabindex="-1"></a><span class="co">#&gt; ..$ verbosity: num 0</span></span>
<span id="cb8-10"><a href="#cb8-10" tabindex="-1"></a><span class="co">#&gt; - attr(*, &quot;class&quot;)= chr &quot;msdata_connection&quot;</span></span></code></pre></div>
Expand Down Expand Up @@ -573,7 +562,7 @@ <h2>tmzML internals</h2>
fast so we may be approaching diminishing returns.</p>
<div class="sourceCode" id="cb10"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb10-1"><a href="#cb10-1" tabindex="-1"></a><span class="fu">unlink</span>(<span class="st">&quot;tmzMLs&quot;</span>, <span class="at">recursive =</span> <span class="cn">TRUE</span>)</span></code></pre></div>
<hr />
<p>Vignette last built on 2023-11-29</p>
<p>Vignette last built on 2023-12-13</p>
</div>


Expand Down
1 change: 1 addition & 0 deletions doc/Minifying-files-with-RaMS.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## ----setup, include = FALSE---------------------------------------------------
options(rmarkdown.html_vignette.check_title = FALSE)
options(tidyverse.quiet = TRUE)
data.table::setDTthreads(2)

knitr::opts_chunk$set(
collapse = TRUE,
Expand Down
1 change: 1 addition & 0 deletions doc/Minifying-files-with-RaMS.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vignette: >
```{r setup, include = FALSE}
options(rmarkdown.html_vignette.check_title = FALSE)
options(tidyverse.quiet = TRUE)
data.table::setDTthreads(2)
knitr::opts_chunk$set(
collapse = TRUE,
Expand Down
Loading

0 comments on commit fde5a5c

Please sign in to comment.