whdFromPositrack: Create whd files for each trial (or .dat file) and for the...

Description Usage Arguments

View source: R/whdFromPositrack.R

Description

The tracking system called Positrack creates files with the extension .positrack in which the x, y position of the animal is recorded. The head direction of the animal is also in the .positrack. file. This function create files with .whd extension with x, y, hd is given at fixed time intervals relative to the electrophysiological recording. During recording, positrack sends ttl pulses to the recording system and the ttl pulses are used to synchronize the position and electrophysiological data. By default, the ttl pulses are on the last channel in the .dat files. This function runs on a single recording session

Usage

1
2
3
whdFromPositrack(rs, resSamplesPerWhdSample = 400, ttlChannel = NA,
  maxUpDiffRes = 4000, overwrite = FALSE, checkUpIntegrity = TRUE,
  checkPositrackIntegrity = TRUE, minInterEventCor = 0.8)

Arguments

rs

RecSession object

resSamplesPerWhdSample

Number of samples in the electrophysiological recording for each whd sample.

ttlChannel

Channel with the ttl signal in the .dat files. By default it is the last channel. Channel numbers start at 0. If you want a different channel for each trial, give a numeric vector with the list of channel.

maxUpDiffRes

Maximum difference between successive up for which position will be interpolated

overwrite

Logical indicating whether to recreate a whd file if one already exists

checkUpIntegrity

Logical indicating whether to check up integrity

checkPositrackIntegrity

Logical indicating whether to check positrack integrity

minInterEventCor

Minimum correlation between intervals of ttl pulses and frame capture


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.