assignWells: Takes xy data and assigns to wells for 24 or 48 well plate.

Description Usage Arguments Details Value

View source: R/drtracker.R

Description

Takes xy data and assigns to wells for 24 or 48 well plate.

Usage

1
2
3
assignWells(files = NULL, wells = 24, markededges = TRUE,
  filenamediscard = ".txt", exportdata = TRUE, exportplot = TRUE,
  quiet = FALSE)

Arguments

files

A character or vector of paths or filenames. See details.

wells

A numeric indicating plate format. Either 24 or 48.

markededges

A logical indicating if corners of plates have been marked. See details.

filenamediscard

A character for part of the filename to be removed. '.txt' is removed by default.

exportdata

A logical indicating if data table must be exported as a text file to the working directory.

exportplot

A logical if results must be plotted as a figure and exported to working directory.

quiet

A logical indicating if messages should be printed to console during the run. If FALSE, all output to console is killed except progress bar.

Details

files
A character or vector of paths to files. On windows, use choose.files() for interactive selection. The input files must be tab-delimited decimal as dot (.) text files. The file must contain a minimum of 3 columns named x, y and slice. x is a numeric indicating x coordinate and y is a numeric indicating y coordinate of each spot. slice indicates the frame number for each spot. Any extra columns are not used.
markededges
markededges=T indicates that the four corners of the plate have been marked in frame 1. They will be used for plate alignment and plotting and will be removed from other analyses.

Value

Returns a dataframe with original data (x,y,slice) along with a new columns row, plate and well. plate column is the filename without filenamediscard. The well column contains the well assignment. If exportdata=TRUE, then a text file with the dataframe is exported in the working directory for each input file.


royfrancis/drtracker documentation built on May 27, 2019, 11:45 p.m.