Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepython
titlePython code
myFile = syn.store(File("/path/to/file", parentId="syn123"), used=['syn445865', 'syn1446185'], 
                   activityName="Manual editing of file", 
                   activityDescription="Corrected spelling of variable names")
Code Block
titleR code
myFile <- synStore(File("/path/to/file", parentId="syn123"), used=['syn445865', 'syn1446185'], 
                   activityName="Manual editing of file", 
                   activityDescription="Corrected spelling of variable names"))

 

Example 2: Creating a provenance record referencing things files stored on the web

...

Code Block
titleR code
myFile <- synStore(File("/path/to/file", parentId="syn123"), 
                   used=['syn445865', 'http://www.google.com'], 
                   activityName="Updated dbgap ids")

...