find_ybr_tiffs: Find all the Yoshi behaviour tiffs in a directory hierarchy

Description Usage Arguments Value See Also Examples

View source: R/yoshi_behav_functions.R

Description

Find all the Yoshi behaviour tiffs in a directory hierarchy

Usage

1
find_ybr_tiffs(path = ".", recursive = TRUE, full.names = TRUE)

Arguments

path

a character vector of full path names; the default corresponds to the working directory, getwd(). Tilde expansion (see path.expand) is performed. Missing values will be ignored. Elements with a marked encoding will be converted to the native encoding (and if that fails, considered non-existent).

recursive

logical. Should the listing recurse into directories?

full.names

a logical value. If TRUE, the directory path is prepended to the file names to give a relative file path. If FALSE, the file names (rather than paths) are returned.

Value

A data.frame containing information about the identified tiffs

See Also

Other read_ybr: read_ybr_summary(), read_ybr_tiff(), read_ybr_xy()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
find_ybr_tiffs(system.file("ybr_tiffs", package='flywatch'))

## Not run: 
## Make some plots for all the experiments in a directory
tiffdf=find_ybr_tiffs("/path/to/my/flydata")
for(i in 1:nrow(tiffdf)){
  intiff=tiffdf[i,'tiff']
  outpdf=paste0(basename(dirname(intiff)),'.pdf')
  pdf(outpdf)
  plot_smoothed_displacement(intiff)
  dev.off()
  cat(".")
}

## End(Not run)

jefferislab/flywatch documentation built on Aug. 6, 2021, 12:14 p.m.