This project contains Matlab [1] code for importing data for Vivek Jayaraman's lab into the Ovation Scientific Data Management System.
The importer is modularized into individual Matlab functions that import components of the Jayaraman data:
insertXSGEpoch
andappendXSG
which insert a new ovation.Epoch for an XSG file or append an XSG file to an existingovation.Epoch
respectivelyappendScanImageTiff
which appends a ScanImage TIFF's data to an existingovation.Epoch
appendSeq
which appends a .seq data file to an existingovation.Epoch
Documentation of the specification for each import module is available on the project wiki.
Coordinating method(s) to import an entire experiment's data have not been written yet.
To use the importer:
Add the
src/
directory to the Matlab pathAdd the
yamlmatlab/
directory to the Matlab pathChoose an Ovation
Experiment
object to insert data into. To create aProject
andExperiment
:>> import ovation.* >> context = NewDataContext(<path_to_connection_file>, <username>); >> project = context.insertProject(<project name>, <project purpose>, <project start date>); >> experiment = project.insertExperiment(<expt purpose>, <expt start date>);
Insert an
EpochGroup
, replacing<label>
with the desiredEpochGroup
label and the arguments todatetime
with the start time and date of theEpochGroup
(seehelp ovation.datetime
):>> epochGroup = experiment.insertEpochGroup(<label>, datetime(...));
Insert an Epoch:
>> epoch = insertXSGEpoch(epochGroup,... xsgPath,... % path to XSG file protocolID,... % protocolID, e.g. 'org.hhmi.janelia.jayaraman.<my protocol name>' timezone) % timezone string (e.g. 'America/New_York')
Append ScanImage data:
>> appendScanImageTiff(epoch, tifFilePath)
Append Seq data:
>> appendSeq(epoch,... seqFile,... % Path to .seq file yamlFile,... % Path to YAML metadata file timeZone) % timezone string (e.g. 'America/New_York')
To run the automated test suite:
Add the
jayaraman-importer/src
folder to the Matlab pathAdd the
yamlmatlab
folder to the Matlab pathAdd
yamlmatlab/external/snakeyaml-1.9.jar
to your java classpath via javaaddpathAdd Matlab xUnit (
jayaraman-importer/matlab-xunit-doctest/xunit
) to the Matlab pathFrom within the
jayaraman-importer/
directory:>> runtestsuite test
[1] | Matlab is a registered trademark of The Mathworks, Inc.. |