Last change
on this file since 260 was
260,
checked in by Jari Häkkinen, 16 years ago
|
Fixed svn properties, 2nd try.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
968 bytes
|
Line | |
---|
1 | ####################################################### |
---|
2 | # |
---|
3 | # $Id: webs-test.R 260 2007-04-20 16:30:44Z jari $ |
---|
4 | # |
---|
5 | # This is a small test script to test the R/Perl to |
---|
6 | # Base connection. |
---|
7 | # |
---|
8 | ####################################################### |
---|
9 | |
---|
10 | library(RSPerl) |
---|
11 | .PerlPackage("BaseWebService") |
---|
12 | source("websFunc.R"); |
---|
13 | |
---|
14 | |
---|
15 | # Login onto the BASE server |
---|
16 | webobj <- login("http://base2.thep.lu.se:8080/acgt", "login", "passwd"); |
---|
17 | |
---|
18 | # The session ID |
---|
19 | sessionID <- webobj$sessionID(); |
---|
20 | |
---|
21 | # Get the list of projects as a list of lists |
---|
22 | projs <- getProjects(webobj); |
---|
23 | |
---|
24 | # get the ID of the first one |
---|
25 | id <- projs[[1]]["id"]; |
---|
26 | |
---|
27 | # Set to be the active project |
---|
28 | setActiveProject(webobj, id); |
---|
29 | |
---|
30 | # Get the list of experiments as a list of lists |
---|
31 | exps <- getExperiments(webobj); |
---|
32 | |
---|
33 | # Select the first experiment |
---|
34 | expId <- exps[[1]]["id"]; |
---|
35 | |
---|
36 | # Get all rawBioAssays for this experiment as a list of lists |
---|
37 | raw <- getRawBioAssays_by_expID(webobj, expId); |
---|
38 | |
---|
39 | # Now download all files to a local directory |
---|
40 | downloadRawBioAssays_by_expID(webobj, expId, "./tmp"); |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.