synMkdir: Create a synapse directory hierarchy

View source: R/traversal.R

synMkdirR Documentation

Create a synapse directory hierarchy

Description

Starting from the provided synapse ID, traverse descendants by name like synPluck(). If a child doesn't exist, create a directory with that name. If .recursive is set, also create intermediate directories as necessary.

Usage

synMkdir(sid, ..., .recursive = FALSE)

Arguments

sid

Synapse ID of the starting entity

...

One or more names for constructing a directory hierarchy. Accepts individual names, vectors and lists

.recursive

Whether to create intermediate directories if they don't exist (default: FALSE)

Details

Returns Synapse ID of final child like synPluck() if the directory already exists.

Value

Synapse ID of the "plucked" entity

Examples

## Not run: 
synMkdir( "syn1773110", "mRNA", "Counts", "htseq-count" )
# [1] "syn2822494"

## End(Not run)

ArtemSokolov/synExtra documentation built on Sept. 27, 2022, 12:17 a.m.