Skip to content

Commit

Permalink
refactor: avoid unnecessary warnings about existing files
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Jan 6, 2022
1 parent f74cb0d commit 074ccdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions external/kegg/getKEGGModelForOrganism.m
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,10 @@
%empty file was written previously so that doesn't have to
%be dealt with
if numel(fastaStruct)==1
warnState = warning %Save the current warning state
warning('off','Bioinfo:fastawrite:AppendToFile');
fastawrite(fullfile(dataDir,'aligned',[missingAligned{i} '.faw']),fastaStruct);
warning(warnState) %Reset warning state to previous settings
end
end
%Move the temporary file to the real one
Expand Down

0 comments on commit 074ccdb

Please sign in to comment.