... | ... |
@@ -10,7 +10,7 @@ |
10 | 10 |
cmetindex <- function(db, use_snps = NULL) { |
11 | 11 |
if (!is(db, "GmapGenome")) |
12 | 12 |
stop("'db' must be a GmapGenome object") |
13 |
- .cmetindex(genome(db), directory(db), directory(db), use_snps = use_snps) |
|
13 |
+ .cmetindex(genome(db), directory(db), use_snps = use_snps) |
|
14 | 14 |
} |
15 | 15 |
|
16 | 16 |
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@68172 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,25 @@ |
1 |
+### ========================================================================= |
|
2 |
+### cmetindex command |
|
3 |
+### ------------------------------------------------------------------------- |
|
4 |
+### |
|
5 |
+ |
|
6 |
+### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
7 |
+### High-level wrapper |
|
8 |
+### |
|
9 |
+ |
|
10 |
+cmetindex <- function(db, use_snps = NULL) { |
|
11 |
+ if (!is(db, "GmapGenome")) |
|
12 |
+ stop("'db' must be a GmapGenome object") |
|
13 |
+ .cmetindex(genome(db), directory(db), directory(db), use_snps = use_snps) |
|
14 |
+} |
|
15 |
+ |
|
16 |
+### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
17 |
+### Low-level wrapper |
|
18 |
+### |
|
19 |
+ |
|
20 |
+.cmetindex <- function(db = "hg19", sourcedir = NULL, destdir = NULL, |
|
21 |
+ use_snps = NULL) |
|
22 |
+{ |
|
23 |
+### TODO: assertions |
|
24 |
+ .system(commandLine("cmetindex")) |
|
25 |
+} |