Browse code

force all tests to build 12mer indices to save memory (and thus hopefully build on the Hutch build machines)

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@74113 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 09/03/2013 01:04:14
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@ test_GsnapParam_constructor <- function() {
2 2
   
3 3
   fa <- system.file("extdata/hg19.p53.fasta", package="gmapR", mustWork=TRUE)
4 4
   fastaFile <- rtracklayer::FastaFile(fa)
5
-  gmapGenome <- GmapGenome(fastaFile, create=TRUE)
5
+  gmapGenome <- GmapGenome(fastaFile, create=TRUE, k = 12)
6 6
 
7 7
   gsnapParam <- GsnapParam(genome = gmapGenome,
8 8
                            unique_only = FALSE,
Browse code

added test for GsnapParam

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@68746 bc3139a8-67e5-0310-9ffc-ced21a209358

Cory Barr authored on 23/08/2012 22:24:29
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+test_GsnapParam_constructor <- function() {
2
+  
3
+  fa <- system.file("extdata/hg19.p53.fasta", package="gmapR", mustWork=TRUE)
4
+  fastaFile <- rtracklayer::FastaFile(fa)
5
+  gmapGenome <- GmapGenome(fastaFile, create=TRUE)
6
+
7
+  gsnapParam <- GsnapParam(genome = gmapGenome,
8
+                           unique_only = FALSE,
9
+                           max_mismatches = NULL,
10
+                           suboptimal_levels = 0L, mode = "standard",
11
+                           npaths = 10L,
12
+                           novelsplicing = FALSE, splicing = NULL, 
13
+                           nthreads = 1L,
14
+                           batch = "2")
15
+
16
+  checkTrue(is(gsnapParam, "GsnapParam"))
17
+}