extr_Spots | R Documentation |
To upload spot localization data to R in the standard BactMAP format, save your spot data as a .txt or .csv file with (at least) the following columns:
x
- the x coordinate of each spot
y
- the y coordinate of each spot
frame
- the number of the image frame
The function also recognises the following columns:
trajectory
- ID variable for a spot trajectory
trajectory_length
- the recorded length of each trajectory
displacement_sq
- the squared displacement of each spot
Other columns will be saved in the output "cellList" (see below).
extr_Spots(dataloc, seperator = ",", cellList=FALSE)
dataloc |
The path to the .txt or .csv file containing the spot data. |
seperator |
Indicates the column seperator of the .txt or .csv. Default = "," |
cellList |
When TRUE, the value 'cellList' is returned (see below). |
cellList |
the original input data as dataframe |
spotframe |
dataframe containing the minimal required columns (x, y & frame) and if given, the extra columns (trajectory, trajectory_length & displacement_sq) |
Renske van Raaphorst
## Not run:
spotpath <- file.choose()
spot_output <- extr_Spots(spotpath, seperator="/t")$spotframe
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.