Browse code

Remove Ramp backend with dependencies

jorainer authored on 20/09/2021 12:19:56
Showing 1 changed files
... ...
@@ -2,21 +2,16 @@ test_isolationWindow <- function() {
2 2
     library("msdata")
3 3
     f <- msdata::proteomics(full.names = TRUE,
4 4
                             pattern = "TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01.mzML.gz")
5
-    rw1 <- openMSfile(f, backend = "Ramp")
6 5
     rw2 <- openMSfile(f, backend = "pwiz")
7 6
     i1 <- isolationWindow(f)
8
-    i2 <- isolationWindow(rw1)
9 7
     i3 <- isolationWindow(rw2)
10
-    checkEquals(i1, i2)
11 8
     checkEquals(i1, i3)
12 9
     i1 <- isolationWindow(f, unique = FALSE)
13
-    i2 <- isolationWindow(rw1, unique = FALSE)
14 10
     i3 <- isolationWindow(rw2, unique = FALSE)
15
-    checkEquals(i1, i2)
16 11
     checkEquals(i1, i3)
17 12
     i1 <- isolationWindow(c(f, f), unique = FALSE)
18 13
     checkEquals(length(i1), 2L)
19 14
     checkEquals(i1[[1]], i1[[2]])
20
-    hd <- header(rw1)
15
+    hd <- header(rw2)
21 16
     checkEquals(sum(hd$msLevel == 2), nrow(i1[[1]]))
22 17
 }
Browse code

specify full name as pattern for get the small TMT Erwinia subset

Laurent authored on 23/06/2017 15:24:36
Showing 1 changed files
... ...
@@ -1,6 +1,7 @@
1 1
 test_isolationWindow <- function() {
2 2
     library("msdata")
3
-    f <- msdata::proteomics(full.names = TRUE, pattern = "TMT_")
3
+    f <- msdata::proteomics(full.names = TRUE,
4
+                            pattern = "TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01.mzML.gz")
4 5
     rw1 <- openMSfile(f, backend = "Ramp")
5 6
     rw2 <- openMSfile(f, backend = "pwiz")
6 7
     i1 <- isolationWindow(f)
Browse code

Merge branch 'master' into devel

* master:
Fix failing example and test due to updated msdata::protemics data

From: Laurent <lg390@cam.ac.uk>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@122002 bc3139a8-67e5-0310-9ffc-ced21a209358

l.gatto authored on 06/10/2016 22:09:03
Showing 1 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 test_isolationWindow <- function() {
2 2
     library("msdata")
3
-    f <- msdata::proteomics(full.names = TRUE)
3
+    f <- msdata::proteomics(full.names = TRUE, pattern = "TMT_")
4 4
     rw1 <- openMSfile(f, backend = "Ramp")
5 5
     rw2 <- openMSfile(f, backend = "pwiz")
6 6
     i1 <- isolationWindow(f)
Browse code

fix conflicts

From: Laurent <lg390@cam.ac.uk>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/mzR@121322 bc3139a8-67e5-0310-9ffc-ced21a209358

l.gatto authored on 23/09/2016 22:05:29
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+test_isolationWindow <- function() {
2
+    library("msdata")
3
+    f <- msdata::proteomics(full.names = TRUE)
4
+    rw1 <- openMSfile(f, backend = "Ramp")
5
+    rw2 <- openMSfile(f, backend = "pwiz")
6
+    i1 <- isolationWindow(f)
7
+    i2 <- isolationWindow(rw1)
8
+    i3 <- isolationWindow(rw2)
9
+    checkEquals(i1, i2)
10
+    checkEquals(i1, i3)
11
+    i1 <- isolationWindow(f, unique = FALSE)
12
+    i2 <- isolationWindow(rw1, unique = FALSE)
13
+    i3 <- isolationWindow(rw2, unique = FALSE)
14
+    checkEquals(i1, i2)
15
+    checkEquals(i1, i3)
16
+    i1 <- isolationWindow(c(f, f), unique = FALSE)
17
+    checkEquals(length(i1), 2L)
18
+    checkEquals(i1[[1]], i1[[2]])
19
+    hd <- header(rw1)
20
+    checkEquals(sum(hd$msLevel == 2), nrow(i1[[1]]))
21
+}