1234567891011 |
- function [experimentDir, flyInd, genotype] = parseFlyPath(flyPath)
- experimentDir = regexp(flyPath, '(\d*\.\d\.\w\w)*', 'tokens');
- experimentDir = experimentDir{1}{1};
- flyInd = regexp(flyPath, '.*fly(\d*)_', 'tokens');
- flyInd = str2double(flyInd{1}{1});
- genotype = regexp(flyPath, '.*fly\d*_(.*)', 'tokens');
- genotype = genotype{1}{1};
- end
|