makeHeadFolder: make the top entity a folder

Usage Arguments Examples

View source: R/makeHeadFolder.R

Usage

1
makeHeadFolder(synObj, synid)

Arguments

synObj
synid

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (synObj, synid)
{
    synObj$adj[1, 1] <- 1
    synObj$type[1] <- "org.sagebionetworks.repo.model.Folder"
    synObj2 <- synGet(synid, downloadFile = F)
    synObj$name[1] <- synObj2@properties$name
    return(synObj)
  }

Sage-Bionetworks/synapseUtilities documentation built on July 1, 2017, 6:29 p.m.