Code covered by the BSD License  

Highlights from
MetaboNetworks

image thumbnail

MetaboNetworks

by

 

18 Jul 2013 (Updated )

A toolbox to interactively create, customize and explore multi-systemic metabolic reaction networks

MetaboGetworks
function MetaboGetworks
%% Main function for getting a custom database used in MetaboNetworks
% Creates a custom database from organisms selected by user
% Saves the database in a .mat file
% This .mat file would later be needed to run MetaboNetworks
% 
% >> MetaboGetworks % run from Matlab command line
    
    orglist=OrganismFindGUI;
    f=findall(0,'type','figure');
    g=strcmp(get(f,'Name'),'OrganismFindGUI');
    waitfor(f(g==1));
    
    if ~isempty(orglist)
        [fn,pn]=uiputfile('*.mat','Enter filename to save the database to');
        if length(fn)<5 || (length(fn)>=5 && ~strcmp(fn((end-3):end),'.mat'))
            disp('No filename chosen ending with .mat')
            return
        else
            [A,K]=GetRPData_Outer(orglist); %#ok
            [N,C,I]=KEGG_nameunfold(K); %#ok
            save(strcat(pn,fn),'A','K','N','C','I')
        end
    else
        disp('No organism selected')
        return
    end
    
end

Contact us