Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions src/convertSourceToRaw.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,23 @@

function convertSourceToRaw(cfg)
%
% Short description of what the function does goes here.
%
% USAGE::
% Function attempts to convert a source dataset created with CPP_BIDS into a valid
% BIDS data set.
%
% [argout1, argout2] = templateFunction(argin1, [argin2 == default,] [argin3])
%
% :param argin1: (dimension) obligatory argument. Lorem ipsum dolor sit amet,
% consectetur adipiscing elit. Ut congue nec est ac lacinia.
% :type argin1: type
% :param argin2: optional argument and its default value. And some of the
% options can be shown in litteral like ``this`` or ``that``.
% :type argin2: string
% :param argin3: (dimension) optional argument
% :type argin3: integer
% USAGE::
%
% :returns: - :argout1: (type) (dimension)
% - :argout2: (type) (dimension)
% convertSourceToRaw(cfg)
%
% convertSourceToRaw(cfg)
% :param cfg: cfg structure is needed only for providing the path in
% ``cfg.dir.output``
% :type cfg: structure
%
% attempts to convert a source dataset created with CPP_BIDS into a valid
% BIDS data set.
% :output:
% - creates dummy README and CHANGE file
% - copy source dir to raw dir
% - remove the date suffix (_date-YYYYMMDDHHMM) from the files where it is present
%
% Only covers func folder at the moment
% - remove the date suffix (_date-*) from the files where it is present
% - zips the _stim files.

sourceDir = fullfile(cfg.dir.output, 'source');
rawDir = fullfile(cfg.dir.output, 'raw');
Expand Down