Changes between Version 2 and Version 3 of xQTLBioinformaticianRCheatSheet


Ignore:
Timestamp:
2011-10-26T09:30:27+02:00 (13 years ago)
Author:
danny
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • xQTLBioinformaticianRCheatSheet

    v2 v3  
    22
    33= [wiki:xQTL xQTL workbench] - Cheat sheet for R scripting =
     4
     5=== Get a parameter from server ===
     6`size <- getparameter("size",jobparams)`
     7
     8=== Do a status update ===
     9`report(2,"Loading 5%...")`
    410
    511=== Get a simple overview of all data matrices ===
     
    2228`rownames(data) <- c("myMarker1", "myMarker2")`[[BR]]
    2329`add.datamatrix(data, name="myResults", investigation_id=invId, rowtype="Marker", coltype="Individual", valuetype="Text")`[[BR]]
     30
     31=== Upload a file ===
     32`uri <- paste(dbpath,"/uploadfile",sep="")`[[BR]]
     33`path <- "testimage.png"`[[BR]]
     34`postForm(uri,investigation_name=investigationname, name="my_image", type="InvestigationFile", file=fileUpload(filename=path), style='HTTPPOST')`