edmerix / openNSx-swift

A Swift class for reading and playing with neural recordings in NSx files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openNSx in Swift

An object-oriented approach to dealing with neural data stored in Blackrock's NSx files, for substantially speedier reading of header and/or raw data in Swift projects.

Usage

Example usage is given in ExampleFileRead.swift Briefly:

let raw = openNSx()
raw.open(fileName: "~/Data/exampleFile.ns5")

// what time did the file start?
print("File start in local time: \(raw.startTimeFormatted)")

// read in a channel:
let data = raw.readChannel(chan: 41)

// and away you go with your analyses or plotting...

About

A Swift class for reading and playing with neural recordings in NSx files


Languages

Language:Swift 100.0%