synGetSubmission: synGetSubmission

Description Usage Arguments See Also Examples

Description

Get a Submission object, given its ID.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

Sage-Bionetworks/rSynapseClient documentation built on May 9, 2019, 7:04 p.m.