Changes between Version 5 and Version 6 of xQTLBioinformaticianRCheatSheet
- Timestamp:
- 2011-10-27T10:52:01+02:00 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
xQTLBioinformaticianRCheatSheet
v5 v6 2 2 3 3 = [wiki:xQTL xQTL workbench] - Cheat sheet for R scripting = 4 5 Start off by connecting R to your application database. Click '''R api''' in the top right corner and copy-paste the content into an R terminal. The R API is usually available under !http://{myhost}/{myapplication}/api/R/. You can now use the following commands: 4 6 5 7 == > Downloading == … … 51 53 === Upload a file === 52 54 53 `uri <- paste(dbpath,"/uploadfile",sep="")`[[BR]] 54 `path <- "testimage.png"`[[BR]] 55 `postForm(uri,investigation_name=investigationname, name="my_image", type="InvestigationFile", file=fileUpload(filename=path), style='HTTPPOST')` 55 `uri <- paste(serverpath,"/uploadfile",sep="")`[[BR]] 56 `postForm(uri,`[[BR]] 57 ` name = "celegan.jpg",`[[BR]] 58 ` Investigation_name = "Studie9_10",`[[BR]] 59 ` type = "InvestigationFile",`[[BR]] 60 ` file = fileUpload(filename = "~/celegan.jpg"),`[[BR]] 61 ` style = "HTTPPOST"`[[BR]] 62 `)` 56 63 57 64 == > Automized xQTL analysis ==