Skip to content

Commit

Permalink
Add new feature to distinguish dadata with and without removing Globa…
Browse files Browse the repository at this point in the history
…l Signal
  • Loading branch information
sandywang committed Apr 11, 2017
1 parent 2e7e1eb commit abf41f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions PsomGen/gretna_GEN_RegressOut.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@
% Beijing, PR China.

Process.command='gretna_RUN_RegressOut(opt.InputFile, opt.GSMsk, opt.WMMsk, opt.CSFMsk, opt.HMInd, opt.HMFile)';
OutputFile=cellfun(@(f) gretna_FUN_GetOutputFile(f, 'c'), InputFile,...
'UniformOutput', false);
if ~isempty(GSMsk)
OutputFile=cellfun(@(f) gretna_FUN_GetOutputFile(f, 'cWGS'), InputFile,...
'UniformOutput', false);
else
OutputFile=cellfun(@(f) gretna_FUN_GetOutputFile(f, 'cNGS'), InputFile,...
'UniformOutput', false);
end

% Options
Process.opt.InputFile=InputFile;
Expand Down
9 changes: 7 additions & 2 deletions RunFun/gretna_RUN_RegressOut.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ function gretna_RUN_RegressOut(InputFile, GSMsk, WMMsk, CSFMsk, HMInd, HMFile)
% Beijing Normal University,
% Beijing, PR China.

OutputFile=cellfun(@(f) gretna_FUN_GetOutputFile(f, 'c'), InputFile,...
'UniformOutput', false);
if ~isempty(GSMsk)
OutputFile=cellfun(@(f) gretna_FUN_GetOutputFile(f, 'cWGS'), InputFile,...
'UniformOutput', false);
else
OutputFile=cellfun(@(f) gretna_FUN_GetOutputFile(f, 'cNGS'), InputFile,...
'UniformOutput', false);
end

FstFile=InputFile{1};
[Path, Name, Ext]=fileparts(FstFile);
Expand Down

0 comments on commit abf41f9

Please sign in to comment.