Skip to content

Commit

Permalink
Merge pull request #175 from SysBioChalmers/feat/rxnMAID
Browse files Browse the repository at this point in the history
feat: add `rxnMAID`field to JSON file
  • Loading branch information
haowang-bioinfo authored Jun 2, 2020
2 parents 82d430f + f0152bb commit e8d4799
Show file tree
Hide file tree
Showing 2 changed files with 13,420 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/misc/prettyJson.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
jsonStr = regexprep(jsonStr,'}$','\n}\n','lineanchors'); % right curly bracket
jsonStr = strrep(jsonStr,'":[','":[\n\t\t'); % left square bracket
jsonStr = strrep(jsonStr,'",','",\n\t\t'); % internal elements in array
jsonStr = strrep(jsonStr,'"],','"],\n\t'); % last element in array
jsonStr = strrep(jsonStr,'],','],\n\t'); % last element in array
jsonStr = compose(jsonStr); % translate escape-characters

prettifiedJSON = jsonStr{1}; % convert from cell to char
Expand Down
Loading

0 comments on commit e8d4799

Please sign in to comment.