Learn R Programming

synapseClient (version 1.14-0)

synGetSubmission: synGetSubmission

Description

Get a Submission object, given its ID.

Usage

synGetSubmission("123456")

Arguments

id
The id of the submission to retrieve.
downloadFile
For File submissions only. If TRUE then the attached file is downloaded to the 'downloadLocation'
downloadLocation
For File submissions only. The folder in the local file system to which the attached file is to be downloaded. If omitted, then a default location in a cache is used. See getFileLocation
ifcollision
For File submissions only. if.collision is one of "keep.both", "keep.local", or "overwrite.local", telling the system what to do if a different file is found at the given local file location.
load
For File submissions only. If TRUE then deserialize the downloaded file into memory, using the R 'load' command (See getObject, listObjects)

See Also

synGetSubmissions synGetOwnSubmissions synGetSubmissionStatus

Examples

Run this code
## Not run: 
# # one of "RECEIVED","OPEN","CLOSED","SCORED","INVALID","VALIDATED","EVALUATION_IN_PROGRESS","REJECTED",or "ACCEPTED"
# status<-"SCORED"
# # get the first 100 submissions in the given evaluation queue having the given status
# submissions<-synGetSubmissions(evaluationId, status, limit=100, offset=0) 
# # get the ID of an arbitrary Submission
# submissionId<-submissions@results[[1]]["id"]
# submission<-synGetSubmission(submissionId)
# ## End(Not run)

Run the code above in your browser using DataLab