makeHeadFolder: make the top entity a folder

Usage Arguments Examples

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/rSynapseUtilities documentation built on May 9, 2019, 12:13 p.m.