rbbt-marq 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/R/GEO.R +31 -0
  2. metadata +1 -1
data/R/GEO.R CHANGED
@@ -1,6 +1,37 @@
1
1
  library(Biobase);
2
2
  library(GEOquery);
3
3
 
4
+
5
+ GEO.path <- function(dataset, datadir = NULL){
6
+ if (is.null(datadir) && exists('MARQ.config')){
7
+ datadir= paste(MARQ.config$datadir, 'GEO', sep="/");
8
+ }
9
+
10
+ if (is.null(datadir)){
11
+ print("No datadir specified and no default found (MARQ.config$datadir");
12
+ exit(-1);
13
+ }
14
+
15
+
16
+ files = Sys.glob(paste(datadir,'*', '*', paste(dataset, 'orders', sep="."), sep="/"));
17
+
18
+ if (length(files) == 0){
19
+ return(NULL);
20
+ }
21
+ else{
22
+ return(files[1]);
23
+ }
24
+ }
25
+
26
+ GEO.platform <- function(dataset, datadir = NULL){
27
+
28
+ path = GEO.path(dataset, datadir);
29
+
30
+ if (is.null(path)){ return(NULL);}
31
+
32
+ return(sub(".*(GPL\\d+).*","\\1", path, perl = TRUE));
33
+ }
34
+
4
35
  GEO.values <- function(data){
5
36
  values <- MA.process(data$m, data$conditions, data$two.channel)
6
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-marq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez