Learn R Programming

retistruct (version 0.6.3)

idt.read.dataset: Read one of the Thompson lab's retinal datasets

Description

Read one of the Thompson lab's retinal datasets. Each dataset is a folder containing a SYS file in SYSTAT format and a MAP file in text format. The SYS file specifies the locations of the data points and the MAP file specifies the outline.

Usage

idt.read.dataset(dataset, report = message, d.close = 0.25)

Arguments

dataset

Path to directory containing as SYS and MAP file

report

Function to report progress

d.close

Maximum distance between points for them to count as the same point. This is expressed as a fraction of the width of the outline.

Value

dataset

The path to the directory given as an argument

raw

List containing

map

The raw MAP data

sys

The raw SYS data

P

The points of the outline

gf

Forward pointers along the outline

gb

Backward pointers along the outline

Ds

List of datapoints

Ss

List of landmark lines

Details

The function returns the outline of the retina. In order to do so, it has to join up the segments of the MAP file. The tracings are not always precise; sometimes there are gaps between points that are actually the same point. The parameter d.close specifies how close points must be to count as the same point.