Changes between Version 5 and Version 6 of xQTLBioinformaticianRCheatSheet


Ignore:
Timestamp:
2011-10-27T10:52:01+02:00 (13 years ago)
Author:
jvelde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • xQTLBioinformaticianRCheatSheet

    v5 v6  
    22
    33= [wiki:xQTL xQTL workbench] - Cheat sheet for R scripting =
     4
     5Start 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:
    46
    57== > Downloading ==
     
    5153=== Upload a file ===
    5254
    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`)`
    5663
    5764== > Automized xQTL analysis ==