Skip to content

Commit

Permalink
Added a few lines in emClarity.m to modify emClarity_ROOT so that it …
Browse files Browse the repository at this point in the history
…is emClarity for distributed versions, which matches the name of the directory when I compile it.
  • Loading branch information
bHimes committed Jun 18, 2020
1 parent 04ba080 commit 9182379
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions testScripts/emClarity.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,35 @@
error('emClarity_ROOT is not set properly in your run script');
end

emC_autoAliPath=sprintf('%s/alignment/emC_autoAlign',emClarity_ROOT);
% For deployed functions, the emClarity folder is probably renamed
% emClarity_1_5_xx, we need to replace this for the ctf root stuff.
% using fileparts will give different answers if the user defines
% emClarity_ROOT with or without a trailing slash. Instead simply
slashCheck = strsplit(emClarity_ROOT,'/');
[pathWithDir,~,~] = fileparts(emClarity_ROOT);
if isempty(slashCheck{end})
% There is a trailing slash
shift_end = 1;
add_slash = '';
else
shift_end = 0;
add_slash = '/';
end
emC_PATH = strsplit(pathWithDir, slashCheck{end-shift_end});
emC_PATH = sprintf('%s%semClarity',emC_PATH{1},add_slash);


emC_autoAliPath=sprintf('%s/alignment/emC_autoAlign',emC_PATH);
if isdeployed
emC_autoAliPath = sprintf('%s%s',ctfroot,emC_autoAliPath);
end

emC_findBeadsPath=sprintf('%s/alignment/emC_findBeads',emClarity_ROOT);
emC_findBeadsPath=sprintf('%s/alignment/emC_findBeads',emC_PATH);
if isdeployed
emC_findBeadsPath = sprintf('%s%s',ctfroot,emC_findBeadsPath);
end

BH_checkInstallPath=sprintf('%s/metaData/BH_checkInstall',emClarity_ROOT);
BH_checkInstallPath=sprintf('%s/metaData/BH_checkInstall',emC_PATH);
if isdeployed
BH_checkInstallPath = sprintf('%s%s',ctfroot,BH_checkInstallPath);
end
Expand Down

0 comments on commit 9182379

Please sign in to comment.