GithubHelp home page GithubHelp logo

krhe / axionfileloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from axionbio/axionfileloader

0.0 0.0 0.0 62 KB

A Matlab library capable of reading Axion's RAW and SPK files.

License: MIT License

MATLAB 100.00%

axionfileloader's Introduction

AxionFileLoader

This repository contains Matlab loaders for Axion BioSystem's AxIS and AxIS Navigator files. It enables extraction of raw voltage, spike times and waveforms, viability, contractility data, and stimulation timing from Axion's .raw and .spk files.

Example usage

Voltage data from a raw file

Voltage data is loaded in as a 4-D channel array structure. Data is indexed as well row, well column, electrode column, electrode row.

%load all voltage data
Data = AxisFile(‘Filename.raw’).RawVoltageData.LoadData; 
%Alternatively, load voltage data from Well A2 Electrode 31 from 10 s to 30 s
Data = AxisFile(‘Filename.raw’).RawVoltageData.LoadData(‘A2’,’31’,[10 30]); 

Then, isolate the properly scaled data of interest.

[time,voltage] = Data{1,2,3,1}.GetTimeVoltageVector; %well A2 electrode 31

Contractility data from a raw file figure

Contractility data is loaded in as a 4-D channel array structure. Data is indexed as well row, well column, electrode column, electrode row.

%load all voltage data
Data = AxisFile(‘Filename.raw’).RawContractilityData.LoadData; 
%Alternatively, load voltage data from Well E4 Electrode 12 from 120 s to 180 s
Data = AxisFile(‘Filename.raw’).RawContractilityData.LoadData(‘E4’,’12’,[120 180]); 

Then, isolate the properly scaled data of interest.

[time,contrac] = Data{5,4,3,1}.GetTimeVoltageVector; 

Spike times and waveforms from a spk file

Spike timing, channel location, and waveforms are all stored in .spk files.

%load all spike data
Data = AxisFile(‘Filename.spk’).SpikeData.LoadData; 

Then, isolate the properly scaled data of interest.

spikeTimes = [Data{3,2,2,1}(:).Start]; %all spike times in Well B2 Electrode 21
spikeWaveform = Data{3,2,2,1}(1).GetVoltageVector; %spike waveform of the 1st spike on Well B2 Electrode 21

Stimulation tag timing

Note that timestamps are only available if your stimulation included a tag (inverted triangle). A tag is automatically included for Brain and Heart pre-configured blocks.

Data = AxisFile('Filename.raw'); 
evts = sort([Data.StimulationEvents(:).EventTime]); 

For more details, please refer to the Wiki.

Current Version

This release (1.1.0.0) was released alongside AxIS 3.7.1 and is the most current version.

Changelog

[1.1.0.0] - 2022-10-14

Released alongside AxIS 3.7.1

Added

  • Added support for files recorded in the new Neural Broadband mode
  • Added Duration field to the headers to indicate duration (in seconds) of the data set.

[1.0.0.0]

  • Initial public release!

axionfileloader's People

Contributors

dstahl-axion avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.