Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
Conflicts:
	softROC_settings.plist
  • Loading branch information
informaton committed Jul 8, 2015
2 parents 2a28896 + 46551c1 commit 93c50eb
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.#softROC.m

softROC_settings.plist

softROC_settings.plist
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ Released under the Creative Commons License 3.0 Attribution (CC BY 3.0)
http://creativecommons.org/licenses/by/3.0/

Attribution text:
softROC program initially written by Hyatt Moore, IV

Moore IV, Hyatt E., Olivier Andlauer, Noah Simon, and Emmanuel Mignot. "Exploring medical diagnostic performance using interactive, multi-parameter sourced receiver operating characteristic scatter plots." Computers in biology and medicine 47 (2014): 120-129.
Binary file modified sample_data.xls
Binary file not shown.
35 changes: 33 additions & 2 deletions softROC.m
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,34 @@ function push_select_file_Callback(hObject, eventdata, handles)
try

[number,txt,raw]=xlsread(full_filename,1,'','basic');

settings = handles.user.settings;


%exclude bad rows on launch?
if(settings.exclude_number_data)
numRows = size(raw,1)-1;
numCols = size(raw,2);
bad_rows = false(numRows,1);
for k=1:numCols
data = raw(2:end,k);
if(iscellstr(data))

else
bad_rows = bad_rows | feval(settings.binop_number,cell2mat(data),settings.exclude_number_value);
end

end

bad_rows = [false;bad_rows];
raw(bad_rows,:) = [];
end

handles.user.filename = filename;




numCols = size(raw,2);
unique_ind = false(1,numCols);
unique_vals = cell(1,numCols);
Expand Down Expand Up @@ -314,8 +340,13 @@ function push_select_file_Callback(hObject, eventdata, handles)

catch ME
disp(ME.message);
disp('There was an error loading the file. Verify its integrity and Excel format.');
disp('If error invovles ''biffparse'' try saving the XLS file using Microsoft Excel 95 format.');
if(isempty(handles.controls.indices))
disp('There was an error loading the file. At least one column must contain two, and only two unique indices to represent the gold standard evaluation');
else
disp('There was an error loading the file. Verify its integrity and Excel format.');
disp('If error invovles ''biffparse'' try saving the XLS file using Microsoft Excel 95 format.');

end

set(handles.text_filename,'string','The file could not be loaded - please verify its format','enable','inactive');
end
Expand Down
8 changes: 8 additions & 0 deletions softROC_file_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@
Gold Standard = Dx Positivity Value = 1.00
HCRT_5_6_-_6_8 >= [1.00 : 100.00]
AND HCRT_8_7_-_9_9 >= [1.00 : 100.00]

18-Feb-2014 11:53:09 /Users/hyatt4/Google Drive/work/softROC requests/result - alberto.txt
Gold Standard = IsIt0 Positivity Value = 1.00
Prediction < [0.00 : 20000.00]

18-Feb-2014 12:07:58 /Users/hyatt4/Google Drive/work/softROC requests/result - alberto_strong vs weak or not.txt
Gold Standard = IsIt2 Positivity Value = 1.00
Prediction < [0.00 : 20000.00]

0 comments on commit 93c50eb

Please sign in to comment.