-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] refactor removing date entity and allow to use bids fitler to only convert certain files from source to raw #197
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
% | ||
% Function attempts to convert a source dataset created with CPP_BIDS into a valid | ||
% BIDS data set. | ||
% | ||
% | ||
% USAGE:: | ||
% | ||
% convertSourceToRaw(cfg) | ||
% convertSourceToRaw(cfg, 'filter', filter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should now be possible to use a typical bids.query fitler to only convert a subset of files (only those from beh
or from a given subject)
% add dummy README and CHANGE file | ||
templateFolder = fullfile(fileparts(mfilename('fullpath')), '..', 'templates'); | ||
% trick use bids matlab copy dataset function | ||
bids.copy_to_derivative(sourceDir, ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reuse the bids matlab "copy dataset" function as it was literally made for this.
function removeDateEntity(varargin) | ||
% | ||
% Removes the date entity from all the files in a BIDS data set | ||
% | ||
% | ||
% USAGE:: | ||
% | ||
% removeDateEntity(pathToDataSet, 'filter', filter) | ||
% | ||
% | ||
% (C) Copyright 2022 CPP_BIDS developers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is now a stand alone function to remove date entities
Thank you! I used removeDateEntity !
|
yeah there might be a bit of branch juggling indeed. |
yeah there might be a bit of branch juggling indeed. |
fixes #196